-
-
Save BrianTheCoder/ce19ff0e50a35703278c to your computer and use it in GitHub Desktop.
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 443 default ssl; | |
server_name curasalus.com www.curasalus.com; | |
root /home/app/curasalus/public; | |
passenger_enabled on; | |
rails_env production; | |
ssl_certificate /home/app/ssl/curasalus.com.pem; | |
ssl_certificate_key /home/app/ssl/curasalus.key; | |
ssl_session_timeout 5m; | |
passenger_set_cgi_param X_FORWARDED_PROTO https; | |
passenger_set_cgi_param X-SSL-Raw-Cert $ssl_client_raw_cert; | |
passenger_set_cgi_param X-SSL-Cert $ssl_client_cert; | |
passenger_set_cgi_param X-SSL-Client-S-DN $ssl_client_s_dn; | |
passenger_set_cgi_param X-SSL-Client-I-DN $ssl_client_i_dn; | |
passenger_set_cgi_param X-SSL-Client-Verify $ssl_client_verify; | |
location ~* \.(js|css|jpg|jpeg|gif|png)$ { | |
if (-f $request_filename) { | |
expires max; | |
break; | |
} | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment