mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
13 lines
No EOL
711 B
Bash
Executable file
13 lines
No EOL
711 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# docker-compose doesn't support assigning labels to configs
|
|
# so we need to create the configs with the CLI
|
|
# bunkerweb.CONFIG_TYPE accepted values are http, stream, server-http, server-stream, default-server-http, modsec and modsec-crs
|
|
# bunkerweb.CONFIG_SITE lets you choose on which web service the config should be applied (MULTISITE mode) and if it's not set, the config will be applied for all services
|
|
# more info at https://docs.bunkerweb.io
|
|
|
|
# remove configs if existing
|
|
docker config rm cfg_drupal_modsec_crs
|
|
|
|
# create configs
|
|
docker config create -l bunkerweb.CONFIG_TYPE=modsec-crs cfg_drupal_modsec_crs -l bunkerweb.CONFIG_SITE=www.example.com ./bw-data/configs/modsec-crs/drupal.conf |