Last active
May 1, 2020 19:13
-
-
Save kylejohnson/9db0e6fb7c8d6abc2b5cf03805a7d845 to your computer and use it in GitHub Desktop.
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
server { | |
listen 80 default_server; | |
server_name _; | |
location = /health-check { | |
return 200; | |
access_log off; | |
} | |
location / { | |
return 301 https://$host$request_uri; | |
} | |
} | |
server { | |
listen 443 ssl; | |
server_name _; | |
ssl_certificate /etc/nginx/ssl/$ssl_server_name/cert.pem; | |
ssl_certificate_key /etc/nginx/ssl/$ssl_server_name/cert.key; | |
location / { | |
proxy_pass http://s3.../; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment