Skip to content
Discussion options

You must be logged in to vote

Here is the verified production reverse proxy configuration for Nginx:

server {
    listen 80;
    server_name flexqr.exe.xyz;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name flexqr.exe.xyz;

    ssl_certificate /etc/letsencrypt/live/flexqr.exe.xyz/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/flexqr.exe.xyz/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bitzin-dev
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