Last active
February 25, 2017 11:22
-
-
Save dongkwan-kim/a5a2aa79728ecc1ec3496f4c5fc0ca0d to your computer and use it in GitHub Desktop.
my_nginx.conf with ssl
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
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