Skip to content

Instantly share code, notes, and snippets.

@eby
Last active March 20, 2016 01:27
Show Gist options
  • Save eby/3bc14741c9a8db16f897 to your computer and use it in GitHub Desktop.
Save eby/3bc14741c9a8db16f897 to your computer and use it in GitHub Desktop.
Docstore Sample Nginx Config
# 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