Jordan Bradford
4912cffe65
Fix parse_value
2024-02-03 13:27:58 -05:00
Jordan Bradford
fa363658df
Update schema based on values in configurer.py
2024-02-03 13:08:27 -05:00
Jordan Bradford
166eba6735
Switch from JSON to py
2024-02-03 12:48:31 -05:00
Jordan Bradford
929536de7b
Run pre-commit hooks
2024-02-02 23:07:38 -05:00
Jordan Bradford
ef5c6c56b7
print human readable error message
2024-02-02 23:06:31 -05:00
Jordan Bradford
fb01dea5e4
Working schema path
2024-02-02 23:01:36 -05:00
Jordan Bradford
78d4b7fbc4
Test config setup
2024-02-02 22:52:16 -05:00
Jordan Bradford
d292457803
Initial config setup
2024-02-02 21:51:23 -05:00
pre-commit-ci[bot]
0f385af837
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-05-25 12:56:22 +00:00
Nicolas Surleraux
bbc6c465ac
Allow to listen on a specific address via TLJH config
2023-05-24 11:42:27 +02:00
Min RK
a58956f14b
update for traefik v2, treafik-proxy v1
...
- tls config is no longer allowed in static config file, add separate dynamic config
- no longer need to persist auth config ourselves (TraefikProxy handles this)
- make sure to reload proxy before reloading hub in tests
2023-05-16 11:47:23 +02:00
pre-commit-ci[bot]
e95942d61b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-05-15 08:51:36 +00:00
Erik Sundell
e0aaa4f995
pre-commit: run black with string normalization
2021-11-03 23:55:34 +01:00
Erik Sundell
771ae59636
pre-commit: run black without string normalization
2021-11-03 23:53:41 +01:00
Erik Sundell
a64f242b61
flake8 fixes: unused imports and f-strings without vars
2021-10-28 15:43:50 +02:00
Erik Sundell
1bdc9e9d82
Merge pull request #232 from yuvipanda/no-e
...
Exit when tljh-config is called as non-root
2021-10-18 18:22:31 +02:00
Jean-Marc Alkazzi
f799206920
Add relevant tests and formatting
2020-11-04 14:32:48 +02:00
Jean-Marc Alkazzi
66cd578d75
Adding update_base_url from tljh config
2020-11-04 14:32:48 +02:00
Dongmok Shin
cbfbec1b38
Use http port from config while checking hub
...
On check_hub_ready
2020-07-28 14:11:17 +03:00
Jeremy Tuloup
c8904ff480
Use /hub/api endpoint to check for hub ready
...
On config reload
2020-06-23 10:43:00 +02:00
GeorgianaElena
93cf80a677
Import containers from collections.abc
2019-07-08 13:41:31 +03:00
GeorgianaElena
bc9aa45b49
Add unset property option
2019-05-28 16:13:42 +03:00
GeorgianaElena
e8b303d01b
Generate random traefik api password
2019-02-13 14:23:02 +02:00
GeorgianaElena
3ee387cd3b
Fixed some issues
2019-02-13 14:23:02 +02:00
GeorgianaElena
eee29a0957
Replace chp with traefik-proxy
2019-02-13 14:23:02 +02:00
yuvipanda
03e8ce1550
Exit when tljh-config is called as non-root
...
- Previously, we only printed warning and did not exit
- Split the warning over two lines rather than one
- -E is not required for tljh-config anymore (since it is in
/usr/bin, not /usr/local/bin), so do not ask users to use it.
https://github.com/jupyterhub/the-littlest-jupyterhub/pull/135
is the PR that made this change, and changed documentation in
most places.
2018-11-13 12:30:36 -08:00
Min RK
d331936812
consolidate yaml configuration
...
workaround ruamel.yaml issue 255,
where once an empty dict or list has been written,
'flow' style is used thereafter, using dense `{key: value}` form
instead of traditional yaml block style.
2018-11-01 11:34:16 +01:00
Min RK
60ab68d299
Update tljh/config.py
...
Co-Authored-By: anyushevai <irina.anyusheva@gmail.com >
2018-10-24 18:13:03 +03:00
Chris Holdgraf
ac06f64224
Update tljh/config.py
...
Co-Authored-By: anyushevai <irina.anyusheva@gmail.com >
2018-10-24 12:56:47 +03:00
anyushevai
12aaf382aa
early check if it was called as non-root user
2018-10-23 23:45:33 +03:00
anyushevai
35309d13d0
add warning & abort if tljh-config is called as non-root user
2018-10-21 23:55:47 +03:00
Min RK
5df106fa82
move config migration to its own file
2018-08-31 12:17:16 +02:00
Min RK
37ad207be9
centralize logging initialization
...
so it can be shared across modules
2018-08-31 12:00:42 +02:00
Min RK
2bf23f0b28
put config in a single config directory
...
instead of top-level files
- ensure directory is private
- both tljh and jupyterhub config go in there
- move old config.yaml to new location at install time
2018-08-28 14:15:45 +02:00
Matthias Bussonnier
8650aacd57
Fix some typos
...
Using `codespell -q3 -w` that I just discovered.
(https://github.com/codespell-project/codespell , pip install codespell)
2018-08-27 17:58:26 -07:00
Chris Holdgraf
f8526c1a2f
fixing copybutton and maybe the integration bug
2018-08-10 17:26:35 -07:00
Min RK
a4427068cc
tests and fixes in tljh-config
...
- add remove-item to cli
- fix setting non-string values (int, bool, float)
- show help when no action is given
- test coverage for cli
2018-07-31 13:25:30 +02:00
Min RK
c6654aea08
avoid circular imports
2018-07-31 12:05:47 +02:00
Min RK
2760e1adcd
consolidate paths in config.py
2018-07-31 12:04:40 +02:00
yuvipanda
75ffa91c85
Fix traefik config reload
...
Simply reloading traefik is not enough - we need to actually
write the new traefik.toml file.
2018-07-30 23:59:33 -07:00
Min RK
7f07bfbec4
reload traefik on tljh-config reload proxy
2018-07-30 15:04:37 +02:00
yuvipanda
7e9e2d375c
Add tljh-config remove-item to remove an item from a list
2018-07-28 11:57:11 -07:00
yuvipanda
f0c944aeb8
Add code + tests for adding items to a list
2018-07-28 11:14:53 -07:00
yuvipanda
0d0dbc828c
Fix typo in tljh-config
2018-07-27 22:57:19 -07:00
yuvipanda
70785f9fd3
Add tljh-config command
...
We do not want users to hand-edit YAML files. This has been a
major source of bugs and confusion for users in z2jh. Doing so
in a terminal text editor makes it even worse.
This lets users type commands directly to modify config.yaml file
rather than edit files directly. This makes it a lot less error
prone and user friendly.
Advanced users can still edit config.yaml manually.
Fixes #38
2018-07-27 21:36:29 -07:00