Created
July 29, 2020 11:44
-
-
Save sovietspy2/66db2eb530a04c9ea18f5f8e855c975d to your computer and use it in GitHub Desktop.
http/https ->localhost:3000
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 80; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443; | |
| server_name wortex.stream www.wortex.stream; | |
| ssl_certificate /etc/letsencrypt/live/wortex.stream/fullchain.pem; # managed by Certbot | |
| ssl_certificate_key /etc/letsencrypt/live/wortex.stream/privkey.pem; # managed by Certbot | |
| ssl on; | |
| ssl_session_cache builtin:1000 shared:SSL:10m; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4; | |
| ssl_prefer_server_ciphers on; | |
| access_log /var/log/nginx/access.log; | |
| location / { | |
| 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_pass http://localhost:3000; | |
| proxy_read_timeout 90; | |
| proxy_redirect http://localhost:3000 https://wortex.stream; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment