mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Traefik config files are .toml
This commit is contained in:
@@ -143,7 +143,7 @@ def test_extra_config(tmpdir, tljh_dir):
|
||||
"checkNewVersion": False
|
||||
}
|
||||
|
||||
with open(os.path.join(extra_config_dir, "extra.py"), "w+") as extra_config_file:
|
||||
with open(os.path.join(extra_config_dir, "extra.toml"), "w+") as extra_config_file:
|
||||
toml.dump(extra_config, extra_config_file)
|
||||
|
||||
# This merges the 2 configs
|
||||
|
||||
@@ -81,7 +81,7 @@ def compute_basic_auth(username, password):
|
||||
return username + ":" + hashed_password
|
||||
|
||||
def load_extra_config(std_toml, extra_config_dir):
|
||||
extra_configs = sorted(glob(os.path.join(extra_config_dir, '*.py')))
|
||||
extra_configs = sorted(glob(os.path.join(extra_config_dir, '*.toml')))
|
||||
# Load the toml list of files into dicts and merge them
|
||||
config = toml.load([std_toml] + extra_configs)
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user