radiasoft / ansible-conf

Radiasoft playbooks
Apache License 2.0
0 stars 1 forks source link

Configure Jupyter Server security #58

Closed elventear closed 7 years ago

elventear commented 7 years ago

Jupyter can use a token or password to ensure access by the right users. In order to use nginx as a proxy, I need to know the token in advance, disable it all together and rely on the authentication of nginx or use a password within Jupyter.

A location for these settings might be in /home/vagrant/.jupyter/jupyter_notebook_config.json

Required by #57.

robnagler commented 7 years ago

Let's use the jupyter password if it is easier than setting up nginx auth.

elventear commented 7 years ago

Another way of getting the token:

jupyter notebook list | grep token  | egrep -o '=([0-9a-z]+)' | tr -d '='
elventear commented 7 years ago

Simples solution is to specify a token before hand, use that token on an nginx header and user nginx auth.