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:
parent
ebdf3a39f3
commit
9acd534706
4 changed files with 13 additions and 8 deletions
|
|
@ -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", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue