make more aspects of API & UI hosting configurable

This is necessary to create proper dev & production builds of the app.
This commit is contained in:
ducklet 2021-08-05 19:18:51 +02:00
parent ebdf3a39f3
commit 9acd534706
4 changed files with 13 additions and 8 deletions

View file

@ -16,4 +16,6 @@ config_path = os.getenv("UNWIND_CONFIG", datadir / "config.toml")
_config = toml.load(config_path)
api_credentials = _config["api"]["credentials"]
api_base = _config["api"].get("base", "/api/")
api_cors = _config["api"].get("cors", "*")
api_credentials = _config["api"].get("credentials", {})