mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Fix traefik config reload
Simply reloading traefik is not enough - we need to actually write the new traefik.toml file.
This commit is contained in:
@@ -15,7 +15,7 @@ import sys
|
||||
import argparse
|
||||
from ruamel.yaml import YAML
|
||||
from copy import deepcopy
|
||||
from tljh import systemd
|
||||
from tljh import systemd, traefik
|
||||
|
||||
|
||||
yaml = YAML(typ='rt')
|
||||
@@ -156,6 +156,8 @@ def reload_component(component):
|
||||
# FIXME: Verify hub is back up?
|
||||
print('Hub reload with new configuration complete')
|
||||
elif component == 'proxy':
|
||||
# FIXME: How to set path here?
|
||||
traefik.ensure_traefik_config('/opt/tljh/hub/state')
|
||||
systemd.restart_service('configurable-http-proxy')
|
||||
systemd.restart_service('traefik')
|
||||
print('Proxy reload with new configuration complete')
|
||||
|
||||
Reference in New Issue
Block a user