mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Add HTTPS port configuration to UI and environment variables in web UI automatic tests
This commit adds the configuration for the HTTPS port to the UI and environment variables. It updates the necessary files to include the HTTPS port in the `/etc/bunkerweb/variables.env` file and the `docker-compose.dev.yml` and `docker-compose.yml` files. This allows for the proper setup and configuration of the HTTPS port for the application.
This commit is contained in:
parent
f0e69f0066
commit
fd546fad26
4 changed files with 6 additions and 1 deletions
1
.github/workflows/tests-ui-linux.yml
vendored
1
.github/workflows/tests-ui-linux.yml
vendored
|
|
@ -80,6 +80,7 @@ jobs:
|
|||
sudo mkdir -p /etc/bunkerweb
|
||||
echo "SERVER_NAME=" | sudo tee /etc/bunkerweb/variables.env
|
||||
echo "HTTP_PORT=80" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "HTTPS_PORT=443" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "BAD_BEHAVIOR_THRESHOLD=20" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo 'DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4' | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo 'API_LISTEN_IP=127.0.0.1' | sudo tee -a /etc/bunkerweb/variables.env
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ ready = False
|
|||
retries = 0
|
||||
while not ready:
|
||||
with suppress(RequestException):
|
||||
status_code = get(f"http://{DEFAULT_SERVER}/setup").status_code
|
||||
status_code = get(f"http://{DEFAULT_SERVER}/setup", verify=False).status_code
|
||||
|
||||
if status_code > 500 and status_code != 502:
|
||||
log_error("An error occurred with the server, exiting ...")
|
||||
|
|
|
|||
|
|
@ -10,10 +10,12 @@ services:
|
|||
dockerfile: src/bw/Dockerfile
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:433
|
||||
environment:
|
||||
SERVER_NAME: ""
|
||||
MULTISITE: "yes"
|
||||
HTTP_PORT: "80"
|
||||
HTTPS_PORT: "433"
|
||||
API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24"
|
||||
USE_BUNKERNET: "no"
|
||||
USE_BLACKLIST: "no"
|
||||
|
|
|
|||
|
|
@ -9,10 +9,12 @@ services:
|
|||
pull_policy: never
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:433
|
||||
environment:
|
||||
SERVER_NAME: ""
|
||||
MULTISITE: "yes"
|
||||
HTTP_PORT: "80"
|
||||
HTTPS_PORT: "433"
|
||||
API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24"
|
||||
LOG_LEVEL: "info"
|
||||
USE_BUNKERNET: "no"
|
||||
|
|
|
|||
Loading…
Reference in a new issue