Skip to content

Instantly share code, notes, and snippets.

@hyochan
Last active January 28, 2020 05:37
Show Gist options
  • Save hyochan/14b17ae937e7016513e4fcb54562b043 to your computer and use it in GitHub Desktop.
Save hyochan/14b17ae937e7016513e4fcb54562b043 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen 443 ssl;
server_name dooboo.dev;
ssl_certificate /root/cert/certificate.crt;
ssl_certificate_key /root/cert/private.key;
location / {
proxy_pass http://localhost:4000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment