Created
December 22, 2017 18:21
-
-
Save GabeMeister/2485ddb4532c049492f65af395695164 to your computer and use it in GitHub Desktop.
This file contains 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
################## WSGI APPS ################## | |
upstream timeforchristmasmusic_app { | |
server localhost:8003 fail_timeout=0; | |
} | |
################# TIME FOR CHRISTMAS MUSIC ################## | |
server { | |
listen 80; | |
server_name timeforchristmasmusic.com www.timeforchristmasmusic.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name timeforchristmasmusic.com www.timeforchristmasmusic.com; | |
ssl_certificate /etc/letsencrypt/live/timeforchristmasmusic.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/timeforchristmasmusic.com/privkey.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; | |
location / { | |
include proxy_params; | |
proxy_pass http://timeforchristmasmusic_app; | |
break; | |
} | |
location ~ /.well-known { | |
allow all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment