Files
jupyterhub/examples/service-whoami-flask/jupyterhub_config.py
Min RK 4c3b134f10 add flask whoami service
for a non-tornado example
2016-10-25 13:24:46 +02:00

14 lines
261 B
Python

import os
import sys
c.JupyterHub.services = [
{
'name': 'whoami',
'url': 'http://127.0.0.1:10101',
'command': ['flask', 'run', '--port=10101'],
'environment': {
'FLASK_APP': 'whoami-flask.py',
}
}
]