Update supported config types in Config.py for autoconf

This commit is contained in:
Théophile Diot 2024-06-27 15:06:34 +01:00
parent c8972e0caf
commit 580ee111e4
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -16,7 +16,17 @@ class Config:
self.__logger = setup_logger("Config", getenv("LOG_LEVEL", "INFO"))
self.__instances = []
self.__services = []
self._supported_config_types = ("server-http", "server-stream", "modsec", "modsec-crs", "crs-plugins-before", "crs-plugins-after")
self._supported_config_types = (
"http",
"stream",
"server-http",
"server-stream",
"default-server-http",
"modsec",
"modsec-crs",
"crs-plugins-before",
"crs-plugins-after",
)
self.__configs = {config_type: {} for config_type in self._supported_config_types}
self.__config = {}