Skip to content
Discussion options

You must be logged in to vote

I deployed my app to another VM, it works now. Not sure why. This is my nginx config for reference:

server {
    server_name api.app.tld; # managed by Certbot

    location / {
	proxy_pass	http://127.0.0.1:3014;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/api.app.tld/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/api.app.tld/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by setoelkahfi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant