Last active
July 27, 2020 21:43
-
-
Save jeffotoni/f3752d469993642b25f2a3b520a5b467 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
server_name wss.your-domain.com.br; | |
access_log /var/log/nginx/wss.your-domain.com.br; | |
location / { | |
proxy_pass http://localhost:3000; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "Upgrade"; | |
proxy_set_header X-Forwarded-Ssl on; | |
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; | |
proxy_set_header X-Forwarded-Scheme $scheme; | |
} | |
ssl_certificate /etc/letsencrypt/live/wss.your-domain.com.br/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/wss.your-domain.com.br/privkey.pem; # managed by Certbot | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment