Implement IP allowlisting for QR generation and enhance .env file handling
All checks were successful
Deploy Production (qr.crewsportswear.app) / deploy (push) Successful in 31s
All checks were successful
Deploy Production (qr.crewsportswear.app) / deploy (push) Successful in 31s
This commit is contained in:
@@ -75,6 +75,19 @@ jobs:
|
||||
|
||||
cd "$DEPLOY_DIR"
|
||||
|
||||
echo "Checking .env file"
|
||||
if [ ! -f .env ]; then
|
||||
echo ".env file not found at $DEPLOY_DIR/.env"
|
||||
echo "Please create it first with optional/custom variables such as:"
|
||||
echo " - TRUST_PROXY"
|
||||
echo " - ALLOWED_QR_IPS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Fixing .env permissions"
|
||||
sudo chown $USER:$USER .env
|
||||
sudo chmod 600 .env
|
||||
|
||||
echo "Ensure networks"
|
||||
docker network inspect traefik-public >/dev/null 2>&1 || \
|
||||
docker network create traefik-public
|
||||
|
||||
Reference in New Issue
Block a user