Skip to content

Instantly share code, notes, and snippets.

@omkar0001
Created May 9, 2016 18:48
Show Gist options
  • Save omkar0001/40e761b5fc67923042590347be028ab4 to your computer and use it in GitHub Desktop.
Save omkar0001/40e761b5fc67923042590347be028ab4 to your computer and use it in GitHub Desktop.
server {
listen 443;
server_name webhook.idelivr.info www.webhook.idelivr.info;
ssl on;
ssl_certificate /etc/letsencrypt/live/webhook.idelivr.info/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/webhook.idelivr.info/privkey.pem;
access_log off;
#root /usr/share/nginx/html;
#index index.html;
location / {
proxy_pass http://localhost:3000;
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;
}
location '/.well-known/acme-challenge' {
allow all;
default_type "text/plain";
root /usr/share/nginx/letsencrypt;
try_files $uri /$1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment