Last active
June 15, 2016 14:02
-
-
Save samuels410/edf92cd3a712f96326e0483bc8eb593f 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
server { | |
listen 80; | |
server_name example.com; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443; | |
server_name example.com; | |
root /var/deploy/code/current/public; | |
charset utf-8; | |
include mime.types; | |
default_type application/octet-stream; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
passenger_enabled on; | |
rails_env production; | |
client_body_in_file_only clean; | |
client_body_buffer_size 32K; | |
client_max_body_size 200M; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/bundle.crt; | |
ssl_certificate_key /etc/nginx/ssl/exmaple.com.key; | |
ssl_session_timeout 5m; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment