mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-26 01:33:12 -05:00
fix: use BASE_URL config for redirect_url if available (#6995)
Co-authored-by: Michael Genson <genson.michael@gmail.com>
This commit is contained in:
@@ -110,6 +110,11 @@ class AppSettings(AppLoggingSettings):
|
||||
BASE_URL: str = "http://localhost:8080"
|
||||
"""trailing slashes are trimmed (ex. `http://localhost:8080/` becomes ``http://localhost:8080`)"""
|
||||
|
||||
@property
|
||||
def is_default_base_url(self) -> bool:
|
||||
"""Returns True if BASE_URL has not been changed from the default."""
|
||||
return self.BASE_URL == "http://localhost:8080"
|
||||
|
||||
STATIC_FILES: str = str(PACKAGE_DIR / "frontend")
|
||||
"""path to static files directory (ex. `mealie/dist`)"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user