mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-09 11:55:18 -05:00
feat: implement the possibility to add tls (#4456)
Signed-off-by: Wim de Groot <34519486+wim-de-groot@users.noreply.github.com>
This commit is contained in:
@@ -353,6 +353,15 @@ class AppSettings(AppLoggingSettings):
|
||||
|
||||
model_config = SettingsConfigDict(arbitrary_types_allowed=True, extra="allow")
|
||||
|
||||
# ===============================================
|
||||
# TLS
|
||||
|
||||
TLS_CERTIFICATE_PATH: str | os.PathLike[str] | None = None
|
||||
"""Path where the certificate resides."""
|
||||
|
||||
TLS_PRIVATE_KEY_PATH: str | os.PathLike[str] | None = None
|
||||
"""Path where the private key resides."""
|
||||
|
||||
|
||||
def app_settings_constructor(data_dir: Path, production: bool, env_file: Path, env_encoding="utf-8") -> AppSettings:
|
||||
"""
|
||||
|
||||
@@ -13,6 +13,8 @@ def main():
|
||||
log_config=log_config(),
|
||||
workers=settings.WORKERS,
|
||||
forwarded_allow_ips=settings.HOST_IP,
|
||||
ssl_keyfile=settings.TLS_PRIVATE_KEY_PATH,
|
||||
ssl_certfile=settings.TLS_CERTIFICATE_PATH,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user