remove trailing space in DockerController and add missing bunkerweb prefix for autoconf-configs example
This commit is contained in:
parent
324feb593d
commit
1819571473
|
@ -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("_", "-")
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue