From 1a4dc88c8a6925e6da630c304dd9ebbe5ae0ef14 Mon Sep 17 00:00:00 2001 From: Midorica Date: Mon, 13 Nov 2023 10:12:52 -0500 Subject: [PATCH] cxb: cleanup of config --- example_config/cxb.yaml | 8 +------- titles/cxb/config.py | 36 ------------------------------------ 2 files changed, 1 insertion(+), 43 deletions(-) diff --git a/example_config/cxb.yaml b/example_config/cxb.yaml index 08948bd..7723ff4 100644 --- a/example_config/cxb.yaml +++ b/example_config/cxb.yaml @@ -1,9 +1,3 @@ server: enable: True - loglevel: "info" - hostname: "localhost" - ssl_enable: False - port: 8082 - port_secure: 443 - ssl_cert: "cert/title.crt" - ssl_key: "cert/title.key" + loglevel: "info" \ No newline at end of file diff --git a/titles/cxb/config.py b/titles/cxb/config.py index 00b7290..fa5a6a3 100644 --- a/titles/cxb/config.py +++ b/titles/cxb/config.py @@ -19,42 +19,6 @@ class CxbServerConfig: ) ) - @property - def hostname(self) -> str: - return CoreConfig.get_config_field( - self.__config, "cxb", "server", "hostname", default="localhost" - ) - - @property - def ssl_enable(self) -> bool: - return CoreConfig.get_config_field( - self.__config, "cxb", "server", "ssl_enable", default=False - ) - - @property - def port(self) -> int: - return CoreConfig.get_config_field( - self.__config, "cxb", "server", "port", default=8082 - ) - - @property - def port_secure(self) -> int: - return CoreConfig.get_config_field( - self.__config, "cxb", "server", "port_secure", default=443 - ) - - @property - def ssl_cert(self) -> str: - return CoreConfig.get_config_field( - self.__config, "cxb", "server", "ssl_cert", default="cert/title.crt" - ) - - @property - def ssl_key(self) -> str: - return CoreConfig.get_config_field( - self.__config, "cxb", "server", "ssl_key", default="cert/title.key" - ) - class CxbConfig(dict): def __init__(self) -> None: