feat: add SECURE_SITE environment variable to Docker Compose files

- Introduced SECURE_SITE variable in all Docker Compose files to allow configuration for reverse proxy usage.
- This addition enhances flexibility for deployment scenarios where a reverse proxy is utilized, improving security configurations.
This commit is contained in:
Daniel Luiz Alves
2025-06-30 11:53:29 -03:00
parent 9e1c6c0e9a
commit 48019df81a
5 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ set -e
echo "🌴 Starting Palmr Server..."
# === UID/GID Runtime Configuration ===
TARGET_UID=${PALMR_UID:-1001}
TARGET_GID=${PALMR_GID:-1001}
@@ -46,7 +45,6 @@ if [ ! -f "/app/server/prisma/palmr.db" ]; then
npx prisma db push --schema=./prisma/schema.prisma --skip-generate --force-reset
fi
# Run seed script from application directory (where node_modules is) - as target user
echo "🌱 Seeding database..."
if [ "$(id -u)" = "0" ]; then
su-exec $TARGET_UID:$TARGET_GID node ./prisma/seed.js