diff --git a/_modules/app/core/config.html b/_modules/app/core/config.html index 12eadee..8a3e1d9 100644 --- a/_modules/app/core/config.html +++ b/_modules/app/core/config.html @@ -33,7 +33,7 @@ - + @@ -557,8 +557,15 @@
db_file: str = "sqlite:///./flux-restful.db"
flux_user: str = os.environ.get("FLUX_USER") or "fluxuser"
flux_token: Optional[str] = os.environ.get("FLUX_TOKEN")
+ flux_server_mode: Optional[str] = (
+ os.environ.get("FLUX_SERVER_MODE") or "single-user"
+ )
secret_key: str = os.environ.get("FLUX_SECRET_KEY") or generate_secret_key()
+ # Validate the server mode provided.
+ if flux_server_mode not in ["single-user", "multi-user"]:
+ raise ValueError("FLUX_SERVER_MODE must be single-user or multi-user")
+
# Expires in 10 hours
access_token_expires_minutes: int = get_int_envar(
"FLUX_ACCESS_TOKEN_EXPIRES_MINUTES", 600
@@ -580,7 +587,7 @@ Source code for app.core.config
Last update:
- Oct 23, 2023
+ Jan 27, 2024
@@ -656,7 +663,7 @@ Source code for app.core.config
-
+