Deploy React + NodeJs App
-
@justoverclock the security of HTTPS is possible, as is an
nginx
build, but not the FQDN you have chosen as you don’t own the digitalocean domain name space. If you wantedmytest.nydomain.com
for example then this would be possible, but but for a domain you so not own or manage.@phenomlab i understand…
now i’ve installed nginx…but i’m stucked…
i’ve installed nginx and enabled the following ports
sudo apt update sudo apt install nginx
To Action From -- ------ ---- Nginx HTTP ALLOW Anywhere 22/tcp ALLOW Anywhere 22 ALLOW Anywhere 2222 ALLOW Anywhere 80/tcp ALLOW Anywhere 443 ALLOW Anywhere 8080 ALLOW Anywhere 3030 ALLOW Anywhere Nginx HTTP (v6) ALLOW Anywhere (v6) 22/tcp (v6) ALLOW Anywhere (v6) 22 (v6) ALLOW Anywhere (v6) 2222 (v6) ALLOW Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6) 8080 (v6) ALLOW Anywhere (v6) 3030 (v6) ALLOW Anywhere (v6)
now what i have to do to have my site running on https://21.21.21.21:8080 instead of actual http://21.21.21.21:8080 (p.s. ip is fake, not the real one)
-
@phenomlab i understand…
now i’ve installed nginx…but i’m stucked…
i’ve installed nginx and enabled the following ports
sudo apt update sudo apt install nginx
To Action From -- ------ ---- Nginx HTTP ALLOW Anywhere 22/tcp ALLOW Anywhere 22 ALLOW Anywhere 2222 ALLOW Anywhere 80/tcp ALLOW Anywhere 443 ALLOW Anywhere 8080 ALLOW Anywhere 3030 ALLOW Anywhere Nginx HTTP (v6) ALLOW Anywhere (v6) 22/tcp (v6) ALLOW Anywhere (v6) 22 (v6) ALLOW Anywhere (v6) 2222 (v6) ALLOW Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6) 8080 (v6) ALLOW Anywhere (v6) 3030 (v6) ALLOW Anywhere (v6)
now what i have to do to have my site running on https://21.21.21.21:8080 instead of actual http://21.21.21.21:8080 (p.s. ip is fake, not the real one)
@justoverclock you’ll need a basic configuration for the nginx configuration. I expect you need a reverse proxy
-
@justoverclock you’ll need a basic configuration for the nginx configuration. I expect you need a reverse proxy
@phenomlab at moment works fine without anything, i don’t know why :D. no way that i can configure nginx without reading some sources…but i can’t find something simple
-
@phenomlab at moment works fine without anything, i don’t know why :D. no way that i can configure nginx without reading some sources…but i can’t find something simple
@justoverclock You just need a basic config block. Which port are you running the NodeJS app on ?
-
@phenomlab at moment works fine without anything, i don’t know why :D. no way that i can configure nginx without reading some sources…but i can’t find something simple
@justoverclock Any update ?
Thanks
EDIT - marking as solved based on the below thread
https://sudonix.com/topic/339/digitalocean-step-by-step-guide-to-nginx-configuration -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.
With your input, this post could be even better 💗
RegisterLog in