Created
May 9, 2016 18:48
-
-
Save omkar0001/40e761b5fc67923042590347be028ab4 to your computer and use it in GitHub Desktop.
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
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