Created
December 12, 2015 02:06
-
-
Save joeljackson/8643e7634ad58df0cd6e 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
# HTTPS server | |
# | |
server { | |
listen 443 ssl; | |
server_name www.honest.dev; | |
ssl_certificate /usr/local/etc/nginx/ssl/honest.crt; | |
ssl_certificate_key /usr/local/etc/nginx/ssl/honest.key; | |
ssl_session_cache shared:SSL:1m; | |
ssl_session_timeout 5m; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
location / { | |
root /Users/joelj/projects/honest/www; | |
try_files /system/maintenance.html $uri $uri/index.html $uri.html @ruby; | |
} | |
location @ruby { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_read_timeout 600s; | |
proxy_send_timeout 600s; | |
proxy_connect_timeout 600s; | |
proxy_set_header X-Forwarded-Proto https; | |
proxy_set_header X-Queue-Start 't=${msec}000'; | |
proxy_redirect off; | |
proxy_max_temp_file_size 0; | |
proxy_pass http://upstream_honest_www; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment