Last active
March 20, 2016 01:27
-
-
Save eby/3bc14741c9a8db16f897 to your computer and use it in GitHub Desktop.
Docstore Sample Nginx Config
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
# Redirect all traffic to SSL | |
server { | |
listen [::]:80; | |
listen 80; | |
server_name docstore.yourdomain.org; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
# Listen on IPv6/4 | |
listen [::]:443 ssl spdy; | |
listen 443 ssl spdy; | |
server_name docstore.yourdomain.org; | |
# Tweak for what you want max upload size to be | |
client_max_body_size 2G; | |
# SSL Configuration | |
# This will get A- or A+ depending on cipher list on ssllabs | |
ssl_certificate /etc/ssl/nginx/yourssl.crt; | |
ssl_certificate_key /etc/ssl/private/yourssl.key; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment