feat: add PreferSecureProtocol in config.ini

This commit is contained in:
Macintxsh 2025-05-21 05:06:45 +03:00
parent b266a1a2df
commit d4d460a2a0
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
4 changed files with 22 additions and 13 deletions

View file

@ -39,6 +39,9 @@ class _App:
self.hostname = _c.get("App", "HostName")
if not self.hostname:
self.hostname = self.host
self.protocol = "http"
if eval(_c.get("App", "PreferSecureProtocol")):
self.protocol = "https"
general = _General()