Edit DockerController regex to handle more custom confs and fix modsec conf mixing

This commit is contained in:
Théophile Diot 2023-02-15 18:10:51 +01:00
parent c92d4224f2
commit 8fa94d6a52
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ class DockerController(Controller, ConfigCaller):
continue
real_variable = variable.replace("bunkerweb.", "", 1)
result = search(
r"^CUSTOM_CONF_(SERVER_HTTP|MODSEC|MODSEC_CRS)_(.+)$", real_variable
r"^CUSTOM_CONF_(HTTP|DEFAULT_SERVER_HTTP|SERVER_HTTP|MODSEC_CRS|MODSEC)_(.+)$",
real_variable,
)
if result is None:
continue