mirror of
https://github.com/kyantech/Palmr.git
synced 2025-10-23 06:11:58 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user