feat: nucene http na https
This commit is contained in:
14
run
14
run
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user