Skip to content
Snippets Groups Projects
Commit 27d2e6bd authored by Christian Boettcher's avatar Christian Boettcher
Browse files

prepare settings for json based user database

parent 2295fa76
Branches
Tags
No related merge requests found
from .main import app
\ No newline at end of file
from .main import app, settings
\ No newline at end of file
......@@ -2,3 +2,4 @@
# DATACATALOG_APISERVER_HOST="0.0.0.0",
# DATACATALOG_APISERVER_PORT=80
DATACATALOG_APISERVER_JSON_STORAGE_PATH="./app/data"
DATACATALOG_APISERVER_USERDB_PATH="./app/userdb.json"
......@@ -7,6 +7,7 @@ DEFAULT_JSON_FILEPATH: str = "./app/data"
class ApiserverSettings(BaseSettings):
json_storage_path: str = DEFAULT_JSON_FILEPATH
userdb_path: str = None
class Config:
env_prefix: str = "datacatalog_apiserver_"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment