-
-
Save Manouchehri/4ffbdc34efc09b9b6376ac962b5a0bbc 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