Last active
October 30, 2018 15:29
-
-
Save balthild/2133be2473d9bbbf457ed937c69f8884 to your computer and use it in GitHub Desktop.
Jupyter Lab
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 ssl http2; | |
server_name jupyter.example.org; | |
ssl_certificate /etc/letsencrypt/live/jupyter.example.org/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/jupyter.example.org/privkey.pem; | |
include /etc/letsencrypt/options-ssl-nginx.conf; | |
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | |
add_header Strict-Transport-Security "max-age=31536000" always; | |
location / { | |
proxy_pass http://10.88.88.100:9000; | |
proxy_set_header Host $host; | |
# websocket support | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade "websocket"; | |
proxy_set_header Connection "Upgrade"; | |
proxy_read_timeout 86400; | |
} | |
} | |
server { | |
listen 80; | |
server_name jupyter.example.org; | |
return 301 https://jupyter.example.org; | |
} |
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
[Unit] | |
Description=Jupyter Lab | |
After=network.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
User=jupyter | |
Group=jupyter | |
WorkingDirectory=/home/jupyter/notebooks | |
ExecStart=/usr/local/bin/jupyter lab --no-browser --ip=10.88.88.100 --port=9000 --notebook-dir=/home/jupyter/notebooks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment