Skip to content
Discussion options

You must be logged in to vote

Fixed it for anyone who needs helps - I mean "fixed", hell, it works :-)

`upstream nextjs {
server localhost.43:5000;
}

server {
listen 443 ssl;
server_name myurl.com

SSL

ssl_certificate /etc/letsencrypt/live/myurl.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myurl.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/myurl.com/chain.pem

logging

error_log /var/log/nginx/myurl.com.error.log warn;

reverse proxy

location / {
proxy_pass http://nextjs;

proxy_set_header  X-Forwarded-For $remote_addr;
proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header  Host  $http_host;
proxy_set_header  X-NginX-Proxy true;
proxy_headers_hash_max_size 512;
pro…

Replies: 1 comment

Comment options

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