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:
Théophile Diot 2024-05-24 12:54:59 +01:00
parent f0e69f0066
commit fd546fad26
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
4 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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 ...")

View file

@ -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"

View file

@ -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"