Created
December 31, 2015 18:41
-
-
Save cboettig/18e1becaa8974139adff to your computer and use it in GitHub Desktop.
Caddyserver proxy for Jupyter
This file contains hidden or 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
https://example.com { | |
proxy / jupyter:8888 { | |
proxy_header X-Real-IP {remote} | |
proxy_header Host {host} | |
} | |
proxy {{.PathMatches "~* /(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/?"}} jupyter:8888 { | |
proxy_header X-Real-IP {remote} | |
proxy_header Host {host} | |
websocket | |
} | |
} |
This file contains hidden or 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
jupyter: | |
image: jupyter/minimal-notebook | |
environment: | |
- PASSWORD=${PASSWORD} | |
caddy: | |
image: joshix/caddy | |
links: | |
- jupyter | |
volumes: | |
- .:/var/www/html | |
- $HOME/.caddy/:/.caddy | |
ports: | |
- 80:80 | |
- 443:443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @colinaaa!