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

allow config fo root path for validation deployment

parent 343f8d07
No related branches found
No related tags found
No related merge requests found
Pipeline #141004 passed
...@@ -42,8 +42,10 @@ DOTENV_FILE_PATH_VARNAME = "DATACATALOG_API_DOTENV_FILE_PATH" ...@@ -42,8 +42,10 @@ DOTENV_FILE_PATH_VARNAME = "DATACATALOG_API_DOTENV_FILE_PATH"
DOTENV_FILE_PATH_DEFAULT = "apiserver/config.env" DOTENV_FILE_PATH_DEFAULT = "apiserver/config.env"
app = FastAPI( app = FastAPI(
title="API-Server for the Data Catalogue" title="API-Server for the Data Catalogue",
root_path= os.getenv("DATACAT_ROOT_PATH", "")
) )
app.add_middleware(SessionMiddleware, secret_key="secret-string") # TODO generate secret string during startup app.add_middleware(SessionMiddleware, secret_key="secret-string") # TODO generate secret string during startup
origins = [ origins = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment