mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
ci/cd - ignore ready conf for db tests and fix linux path for ready conf
This commit is contained in:
parent
9775cd5bbd
commit
35d16233cd
28 changed files with 29 additions and 27 deletions
|
|
@ -31,7 +31,7 @@ else
|
|||
echo "USE_ANTIBOT=no" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "ANTIBOT_URI=/challenge" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ else
|
|||
echo "AUTH_BASIC_USER=bunkerity" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "AUTH_BASIC_PASSWORD=Secr3tP@ssw0rd" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo wget -O /var/www/html/index.html https://github.com/nginxinc/NGINX-Demos/raw/master/nginx-hello-nonroot/html-version/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ else
|
|||
echo "BAD_BEHAVIOR_COUNT_TIME=60" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ else
|
|||
echo "BLACKLIST_IGNORE_URI_URLS=" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ else
|
|||
sudo systemctl stop bunkerweb
|
||||
echo "USE_BROTLI=no" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ else
|
|||
export BUNKERNET_SERVER="http://127.0.0.1:8080"
|
||||
sudo touch /var/www/html/index.html
|
||||
python3 api/main.py &
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ else
|
|||
export USE_REDIS="yes"
|
||||
export REDIS_HOST="127.0.0.1"
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
cleanup_stack () {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ else
|
|||
echo "CLIENT_CACHE_CONTROL=public, max-age=15552000" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp image.png /var/www/html/image.png
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ else
|
|||
echo "CORS_ALLOW_CREDENTIALS=no" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "CORS_ALLOW_METHODS=GET, POST, OPTIONS" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "CORS_ALLOW_HEADERS=DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ else
|
|||
sudo touch /var/www/html/index.html
|
||||
export COUNTRY=""
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ else
|
|||
echo "CUSTOM_SSL_CERT=/tmp/certificate.pem" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "CUSTOM_SSL_KEY=/tmp/privatekey.key" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -550,6 +550,8 @@ try:
|
|||
)
|
||||
|
||||
for custom_config in custom_configs:
|
||||
if custom_config.name == "ready":
|
||||
continue
|
||||
if not multisite and custom_config.name in global_custom_configs and custom_config.service_id:
|
||||
print(
|
||||
f"❌ The custom config {custom_config.name} is in the database but should not be owned by the service {custom_config.service_id} because multisite is not enabled, exiting ...",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ else
|
|||
export GLOBAL_REVERSE_PROXY_HOST="http://app1:8080"
|
||||
export GLOBAL_REVERSE_PROXY_URL="/"
|
||||
export CUSTOM_CONF_MODSEC_test_custom_conf='SecRule REQUEST_FILENAME "@rx ^/db" "id:10000,ctl:ruleRemoveByTag=attack-generic,ctl:ruleRemoveByTag=attack-protocol,nolog"'
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ else
|
|||
echo "DNSBL_LIST=" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ else
|
|||
sudo touch /var/www/html/index.html
|
||||
sudo mkdir -p /var/www/html/errors
|
||||
sudo cp "403.html" "/var/www/html/errors/403.html"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ else
|
|||
echo "GREYLIST_URI_URLS=" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ else
|
|||
sudo systemctl stop bunkerweb
|
||||
echo "USE_GZIP=no" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ else
|
|||
echo "X_FRAME_OPTIONS=SAMEORIGIN" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "X_CONTENT_TYPE_OPTIONS=nosniff" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "X_XSS_PROTECTION=1; mode=block" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ else
|
|||
sudo systemctl stop bunkerweb
|
||||
echo "INJECT_BODY=TEST" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo cp index.html /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
cleanup_stack () {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ else
|
|||
echo "USE_LIMIT_CONN=yes" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "LIMIT_CONN_MAX_HTTP1=1" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ else
|
|||
echo "DENY_HTTP_STATUS=403" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ else
|
|||
echo "MODSECURITY_SEC_RULE_ENGINE=On" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "MODSECURITY_SEC_AUDIT_LOG_PARTS=ABCFHZ" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ else
|
|||
echo "REDIRECT_TO=" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "REDIRECT_TO_REQUEST_URI=no" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ else
|
|||
echo "REDIS_SSL=no" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ else
|
|||
echo "REVERSE_SCAN_TIMEOUT=500" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ else
|
|||
echo "SELF_SIGNED_SSL_EXPIRY=365" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "SELF_SIGNED_SSL_SUBJ=/CN=www.example.com/" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ else
|
|||
echo "SESSIONS_NAME=random" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ else
|
|||
echo "WHITELIST_URI_URLS=" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo touch /var/www/html/index.html
|
||||
export TEST_TYPE="linux"
|
||||
sudo cp ready.conf /etc/bunkerweb/server-http
|
||||
sudo cp ready.conf /etc/bunkerweb/configs/server-http
|
||||
fi
|
||||
|
||||
manual=0
|
||||
|
|
|
|||
Loading…
Reference in a new issue