Skip to content

Instantly share code, notes, and snippets.

@jonghwanhyeon
Created September 10, 2015 11:06
Show Gist options
  • Save jonghwanhyeon/be704c83002cffb36bb5 to your computer and use it in GitHub Desktop.
Save jonghwanhyeon/be704c83002cffb36bb5 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name jupyter.jonghwan.me;
location / {
proxy_pass http://127.0.0.1:8888;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment