fix: respect root_path in FastAPI docs
This commit is contained in:
@@ -51,6 +51,7 @@ class Settings(BaseSettings):
|
||||
loki_port: int = Field(default=3100, validation_alias="LOKI_PORT")
|
||||
loki_enabled: bool = Field(default=False, validation_alias="LOKI_ENABLED")
|
||||
credential_encryption_key: str = Field(default="", validation_alias="CREDENTIAL_ENCRYPTION_KEY")
|
||||
root_path: str = Field(default="", validation_alias="PORTFOLIOHUB_ROOT_PATH")
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="PORTFOLIOHUB_",
|
||||
|
||||
@@ -63,6 +63,7 @@ def create_app(
|
||||
version=settings.app_version,
|
||||
docs_url="/docs",
|
||||
redoc_url="/redoc",
|
||||
root_path=settings.root_path,
|
||||
lifespan=lifespan,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user