mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
API_DOCS defaults to True
This commit is contained in:
parent
27b792a9e8
commit
8543b1380f
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class AppSettings:
|
||||||
self.PRODUCTION = bool(os.environ.get("ENV"))
|
self.PRODUCTION = bool(os.environ.get("ENV"))
|
||||||
self.IS_DEMO = os.getenv("DEMO", "False") == "True"
|
self.IS_DEMO = os.getenv("DEMO", "False") == "True"
|
||||||
self.API_PORT = int(os.getenv("API_PORT", 9000))
|
self.API_PORT = int(os.getenv("API_PORT", 9000))
|
||||||
self.API = os.getenv("API_DOCS", "False") == "True"
|
self.API = os.getenv("API_DOCS", "True") == "True"
|
||||||
self.DOCS_URL = "/docs" if self.API else None
|
self.DOCS_URL = "/docs" if self.API else None
|
||||||
self.REDOC_URL = "/redoc" if self.API else None
|
self.REDOC_URL = "/redoc" if self.API else None
|
||||||
self.SECRET = determine_secrets(app_dirs.DATA_DIR, self.PRODUCTION)
|
self.SECRET = determine_secrets(app_dirs.DATA_DIR, self.PRODUCTION)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue