remove trailing space in DockerController and add missing bunkerweb prefix for autoconf-configs example

This commit is contained in:
bunkerity 2022-07-21 17:52:35 +02:00
parent 324feb593d
commit 1819571473
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 4 additions and 4 deletions

View File

@ -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("_", "-")

View File

@ -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 {