JupyterHub开启 https :让你的Jupyter更安全!

JupyterHub部署好了,可以在公网访问了,接下来最好要开启 https ,用SSL守护你的密码和数据。

开启https很简单,官方文档写的很清楚,支持SSL certificate,letsencrypt等方式。如果你已经有了SSL证书,那么只需要修改 jupyterhub_config.py 文件:

c.JupyterHub.ssl_key = '/path/to/my.key'
c.JupyterHub.ssl_cert = '/path/to/my.cert'

重启JupyterHub就可以了。用上https可以安全不少。

发表评论