feat: add PreferSecureProtocol in config.ini
This commit is contained in:
parent
b266a1a2df
commit
d4d460a2a0
4 changed files with 22 additions and 13 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue