Skip to content

Instantly share code, notes, and snippets.

@djblue
Created December 8, 2014 04:35
Show Gist options
  • Save djblue/7d630e7be55069bae6dc to your computer and use it in GitHub Desktop.
Save djblue/7d630e7be55069bae6dc to your computer and use it in GitHub Desktop.
Setup an nginx reverse proxy with ssl.
server {
server_name: you.domain;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:3000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment