Created
May 2, 2018 05:46
-
-
Save up209d/2140a9c4ea8bd3ef4c009cfd91d57331 to your computer and use it in GitHub Desktop.
NGINX Routing Config
This file contains 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; | |
server_name example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name example.com; | |
ssl_certificate /path/to/server.crt; | |
ssl_certificate_key /path/to/server.bypass.key; # server private key without passhare | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://127.0.0.1:20987; # Nodejs Server | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment