chu&mai2: add option to use https

This commit is contained in:
zaphkito
2025-06-14 05:05:19 +08:00
parent 3a8a67cee2
commit 592e6961e8
6 changed files with 54 additions and 9 deletions

View File

@@ -20,6 +20,12 @@ class Mai2ServerConfig:
self.__config, "mai2", "server", "loglevel", default="info"
)
)
@property
def use_https(self) -> bool:
return CoreConfig.get_config_field(
self.__config, "mai2", "server", "use_https", default=False
)
class Mai2DeliverConfig:
def __init__(self, parent: "Mai2Config") -> None: