Skip to content

Instantly share code, notes, and snippets.

@DavidYKay
Created June 25, 2017 01:33
Show Gist options
  • Save DavidYKay/f797590ea20494f121a3b9666d1c73a4 to your computer and use it in GitHub Desktop.
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.
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