Created
August 20, 2014 02:19
-
-
Save he9lin/b1469b44139728a49f71 to your computer and use it in GitHub Desktop.
Local SSH setup on Ngnix
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
upstream local_3000 { | |
server 127.0.0.1:3000; | |
} | |
server { | |
server_name 3000.local; | |
listen 80; | |
listen 443 default ssl; | |
send_timeout 3600; # For debugging with breakpoints | |
#ssl on; | |
ssl_certificate server.crt; | |
ssl_certificate_key server.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv2 SSLv3 TLSv1; | |
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | |
ssl_prefer_server_ciphers on; | |
access_log /usr/local/var/log/nginx/3000_access.log; | |
error_log /usr/local/var/log/nginx/3000_error.log; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_redirect off; | |
proxy_pass http://local_3000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment