1
0

feat: nucene http na https

This commit is contained in:
2026-03-02 01:49:05 +01:00
parent 69f5bb7068
commit 9ad21e6f34
5 changed files with 70 additions and 42 deletions

14
run
View File

@@ -10,6 +10,7 @@ if [[ ! -f $ENV_FILE ]]; then
echo "Please create $ENV_FILE file with the following variables:"
echo "DEV_URL=your.domain.com"
echo "EXTERNAL_NETWORK=your_network_name"
echo "FORCE_HTTPS_REDIRECT=true # Set to 'false' to disable HTTPS redirect"
exit 1
fi
@@ -19,8 +20,17 @@ source $ENV_FILE
case "$ACTION" in
"up")
docker network create $EXTERNAL_NETWORK > /dev/null 2>&1 || true
docker compose up -d
echo "\nServices are starting up..."
# Check HTTPS redirect setting
if [[ "${FORCE_HTTPS_REDIRECT}" == "true" ]]; then
MSG="Starting with HTTPS redirect enabled..."
docker compose -f docker-compose.yml -f docker-compose.https-redirect.yml up -d
else
MSG="Starting without HTTPS redirect..."
docker compose up -d
fi
echo "\n${MSG}"
sleep 2
echo "\nAvailable services:"
echo "Traefik: https://traefik.${DEV_URL}"