We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c64434a commit fed16dfCopy full SHA for fed16df
1 file changed
docker/jupyterhub/jupyterhub_config.py
@@ -11,6 +11,9 @@
11
# See the License for the specific language governing permissions and
12
# limitations under the License.
13
14
+# pylint: disable-all
15
+# flake8: noqa
16
+
17
# Configuration file for jupyterhub.
18
# shutdown the server after no activity for an hour
19
import os
@@ -26,6 +29,12 @@
26
29
c.JupyterHub.ip = '0.0.0.0'
27
30
c.JupyterHub.hub_ip = '0.0.0.0'
28
31
32
+ssl_key_path = os.getenv("SQLFLOW_JUPYTER_SSL_KEY")
33
+ssl_cert_path = os.getenv("SQLFLOW_JUPYTER_SSL_CERT")
34
+if ssl_key_path != "" and ssl_cert_path != "":
35
+ c.JupyterHub.ssl_key = ssl_key_path
36
+ c.JupyterHub.ssl_cert = ssl_cert_path
37
38
# Don't try to cleanup servers on exit - since in general for k8s, we want
39
# the hub to be able to restart without losing user containers
40
c.JupyterHub.cleanup_servers = False
0 commit comments