|
@@ -20,7 +20,7 @@ CORS(app)
|
|
|
with open(os.environ.get("TS_SECRET_FILE", "secret.toml")) as infile:
|
|
|
cfg = toml.load(infile)
|
|
|
for k in ("host", "port", "user", "pass"):
|
|
|
- app.config[k] = cfg[k]
|
|
|
+ app.config[k] = os.environ.get(f"TS_SERVER_{k.upper()}", cfg[k])
|
|
|
|
|
|
|
|
|
def parse_ts_response(response):
|