Created
June 25, 2017 01:33
-
-
Save DavidYKay/f797590ea20494f121a3b9666d1c73a4 to your computer and use it in GitHub Desktop.
Nginx local SSL reverse proxy - helpful for development when you need SSL in front of your dev server.
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
upstream backends { | |
server localhost:3000; | |
} | |
server { | |
listen 80; | |
listen 443 ssl; | |
server_name foo.bar; | |
ssl_certificate dev.crt; | |
ssl_certificate_key dev.key; | |
location / { | |
proxy_pass http://backends; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment