mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
reload traefik on tljh-config reload proxy
This commit is contained in:
@@ -157,6 +157,7 @@ def reload_component(component):
|
|||||||
print('Hub reload with new configuration complete')
|
print('Hub reload with new configuration complete')
|
||||||
elif component == 'proxy':
|
elif component == 'proxy':
|
||||||
systemd.restart_service('configurable-http-proxy')
|
systemd.restart_service('configurable-http-proxy')
|
||||||
|
systemd.restart_service('traefik')
|
||||||
print('Proxy reload with new configuration complete')
|
print('Proxy reload with new configuration complete')
|
||||||
|
|
||||||
|
|
||||||
@@ -238,5 +239,6 @@ def main():
|
|||||||
elif args.action == 'reload':
|
elif args.action == 'reload':
|
||||||
reload_component(args.component)
|
reload_component(args.component)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user