Listen on all

This commit is contained in:
Micke Nordin 2024-01-16 15:11:52 +01:00
parent d334afa51b
commit ab23b511a9
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -1,17 +1,4 @@
hub: hub:
networkPolicy:
ingress:
- ports:
- port: 8082
from:
- podSelector:
matchLabels:
hub.jupyter.org/network-access-hub: "true"
service:
extraPorts:
- port: 8082
targetPort: 8082
name: refresh-token
config: config:
Authenticator: Authenticator:
auto_login: true auto_login: true
@ -155,7 +142,7 @@ hub:
c.JupyterHub.services = [ c.JupyterHub.services = [
{ {
'name': 'refresh-token', 'name': 'refresh-token',
'url': 'http://127.0.0.1:8082', 'url': 'http://0.0.0.0:8082',
'display': False, 'display': False,
'oauth_no_confirm': True, 'oauth_no_confirm': True,
'api_token': os.environ['JUPYTERHUB_CRYPT_KEY'], 'api_token': os.environ['JUPYTERHUB_CRYPT_KEY'],
@ -210,7 +197,19 @@ hub:
IOLoop.current().start() IOLoop.current().start()
if __name__ == '__main__': if __name__ == '__main__':
main() main()
networkPolicy:
ingress:
- ports:
- port: 8082
from:
- podSelector:
matchLabels:
hub.jupyter.org/network-access-hub: "true"
service:
extraPorts:
- port: 8082
targetPort: 8082
name: refresh-token
extraEnv: extraEnv:
NEXTCLOUD_DEBUG_OAUTH: "yes" NEXTCLOUD_DEBUG_OAUTH: "yes"
NEXTCLOUD_HOST: sunet.drive.test.sunet.se NEXTCLOUD_HOST: sunet.drive.test.sunet.se