diff --git a/autoconf/DockerController.py b/autoconf/DockerController.py index 37e5d7930..345de9bb0 100644 --- a/autoconf/DockerController.py +++ b/autoconf/DockerController.py @@ -90,7 +90,7 @@ class DockerController(Controller, ConfigCaller) : if not variable.startswith("bunkerweb.") : continue real_variable = variable.replace("bunkerweb.", "", 1) - result = search(r"^CUSTOM_CONF_(SERVER_HTTP|MODSEC|MODSEC_CRS)_(.+)$ ", real_variable) + result = search(r"^CUSTOM_CONF_(SERVER_HTTP|MODSEC|MODSEC_CRS)_(.+)$", real_variable) if result is None : continue cfg_type = result.group(1).lower().replace("_", "-") diff --git a/examples/autoconf-configs/autoconf.yml b/examples/autoconf-configs/autoconf.yml index c3b2164d1..3b54b7359 100644 --- a/examples/autoconf-configs/autoconf.yml +++ b/examples/autoconf-configs/autoconf.yml @@ -14,7 +14,7 @@ services: - "bunkerweb.REVERSE_PROXY_URL=/" - "bunkerweb.REVERSE_PROXY_HOST=http://myapp1" - | - CUSTOM_CONF_SERVER_HTTP_example= + bunkerweb.CUSTOM_CONF_SERVER_HTTP_example= location /hello { default_type 'text/plain'; content_by_lua_block { @@ -34,7 +34,7 @@ services: - "bunkerweb.REVERSE_PROXY_URL=/" - "bunkerweb.REVERSE_PROXY_HOST=http://myapp2" - | - CUSTOM_CONF_SERVER_HTTP_example= + bunkerweb.CUSTOM_CONF_SERVER_HTTP_example= location /hello { default_type 'text/plain'; content_by_lua_block { @@ -54,7 +54,7 @@ services: - "bunkerweb.REVERSE_PROXY_URL=/" - "bunkerweb.REVERSE_PROXY_HOST=http://myapp3" - | - CUSTOM_CONF_SERVER_HTTP_example= + bunkerweb.CUSTOM_CONF_SERVER_HTTP_example= location /hello { default_type 'text/plain'; content_by_lua_block {