Skip to content

Instantly share code, notes, and snippets.

@dongkwan-kim
Last active February 25, 2017 11:22
Show Gist options
  • Save dongkwan-kim/a5a2aa79728ecc1ec3496f4c5fc0ca0d to your computer and use it in GitHub Desktop.
Save dongkwan-kim/a5a2aa79728ecc1ec3496f4c5fc0ca0d to your computer and use it in GitHub Desktop.
my_nginx.conf with ssl
upstream django {
server unix:///home/(.*)/(.*).sock;
}
# configuration of the server
server {
listen 80;
listen 443 ssl;
server_name (.*);
charset utf-8;
ssl_certificate /etc/letsencrypt/live/(domain)/(.*).pem;
ssl_certificate_key /etc/letsencrypt/live/(domain)/(.*).pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
client_max_body_size 75M;
location /static {
alias /home/(.*)/static;
}
location / {
uwsgi_pass django;
include /home/ubuntu/(.*)/uwsgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment