bron this is what Iām trying to tell youā¦
nginx is going to send anything nftea.app to localhost:3000 where the main app is runningā¦
tried it the way you suggested like this
server {
# Binds the TCP port 80.
# Defines the domain or subdomain name.
# If no server_name is defined in a server block then
# Nginx uses the 'empty' name
root /var/www/html/nftea;
server_name nftea.app www.nftea.app;
# Redirect the traffic to the corresponding
# HTTPS server block with status code 301
location / {
proxy_pass http://localhost:3000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/nftea.app/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/nftea.app/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
server_name nftea.app/server;
location / {
proxy_pass http://localhost:1337/server;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
}
}