[feat] configure HTTPS Only settings (#3801)

This commit is contained in:
Vlad Stan
2026-03-23 12:12:22 +02:00
committed by GitHub
parent fcebb7e28c
commit bbad4a91ae
4 changed files with 59 additions and 11 deletions
+3
View File
@@ -1005,6 +1005,9 @@ class EnvSettings(LNbitsSettings):
debug: bool = Field(default=False)
debug_database: bool = Field(default=False)
bundle_assets: bool = Field(default=True)
# When enabled, auth cookies require HTTPS and SSO will reject insecure HTTP.
# Set to false for local/dev environments that run without TLS.
auth_https_only: bool = Field(default=True)
host: str = Field(default="127.0.0.1")
port: int = Field(default=5000, gt=0)
forwarded_allow_ips: str = Field(default="*")