fix nextcloud modsec rule id, fix k8s pvc definition and remove useless logs from linux/start.sh
This commit is contained in:
parent
e50c92250b
commit
2d11a1c728
|
@ -54,7 +54,7 @@ services:
|
|||
setvar:'tx.allowed_methods=GET POST HEAD COPY DELETE LOCK MKCOL MOVE PROPFIND PROPPATCH PUT UNLOCK OPTIONS'"
|
||||
- |
|
||||
bunkerweb.CUSTOM_CONF_MODSEC_nextcloud=
|
||||
SecRule REQUEST_FILENAME "@rx ^/remote.php/dav/files/" "id:1000,ctl:ruleRemoveByTag=attack-protocol,ctl:ruleRemoveByTag=attack-generic,nolog"
|
||||
SecRule REQUEST_FILENAME "@rx ^/remote.php/dav/files/" "id:1,ctl:ruleRemoveByTag=attack-protocol,ctl:ruleRemoveByTag=attack-generic,nolog"
|
||||
|
||||
|
||||
mydb:
|
||||
|
|
|
@ -1 +1 @@
|
|||
SecRule REQUEST_FILENAME "@rx ^/remote.php/dav/files/" "id:1000,ctl:ruleRemoveByTag=attack-protocol,ctl:ruleRemoveByTag=attack-generic,nolog"
|
||||
SecRule REQUEST_FILENAME "@rx ^/remote.php/dav/files/" "id:1,ctl:ruleRemoveByTag=attack-protocol,ctl:ruleRemoveByTag=attack-generic,nolog"
|
|
@ -45,7 +45,7 @@ services:
|
|||
setvar:'tx.allowed_methods=GET POST HEAD COPY DELETE LOCK MKCOL MOVE PROPFIND PROPPATCH PUT UNLOCK OPTIONS'"
|
||||
- |
|
||||
CUSTOM_CONF_MODSEC_nextcloud=
|
||||
SecRule REQUEST_FILENAME "@rx ^/remote.php/dav/files/" "id:2000,ctl:ruleRemoveByTag=attack-protocol,ctl:ruleRemoveByTag=attack-generic,nolog"
|
||||
SecRule REQUEST_FILENAME "@rx ^/remote.php/dav/files/" "id:1,ctl:ruleRemoveByTag=attack-protocol,ctl:ruleRemoveByTag=attack-generic,nolog"
|
||||
labels:
|
||||
- "bunkerweb.INSTANCE" # required for the scheduler to recognize the container
|
||||
networks:
|
||||
|
|
|
@ -262,5 +262,3 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
storageClassName: ""
|
||||
volumeName: pv-bunkerweb
|
||||
|
|
|
@ -16,7 +16,7 @@ function display_help() {
|
|||
}
|
||||
|
||||
function stop_nginx() {
|
||||
pgrep nginx
|
||||
pgrep nginx > /dev/null 2>&1
|
||||
if [ $? -eq 0 ] ; then
|
||||
log "SYSTEMCTL" "ℹ️ " "Stopping nginx..."
|
||||
nginx -s stop
|
||||
|
@ -26,7 +26,7 @@ function stop_nginx() {
|
|||
fi
|
||||
count=0
|
||||
while [ 1 ] ; do
|
||||
pgrep nginx
|
||||
pgrep nginx > /dev/null 2>&1
|
||||
if [ $? -ne 0 ] ; then
|
||||
break
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue