-
-
Save ScottRadcliff/01728866e437fbd594db5794b9feffdb to your computer and use it in GitHub Desktop.
Simple SSL-enabled nginx config to serve static files
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
server { | |
listen 80; | |
return 301 https://\$host\$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
ssl_certificate [PATH_TO_SSL_CERT]; | |
ssl_certificate_key [PATH_TO_SSL_CERT_KEY]; | |
location / { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment