Files
sprout-track/.env.sample
T
2026-03-28 12:08:34 -05:00

36 lines
1.5 KiB
Bash

# Database provider: "sqlite" (default) or "postgresql"
DATABASE_PROVIDER="sqlite"
# SQLite database URLs (default)
DATABASE_URL="file:../db/baby-tracker.db"
LOG_DATABASE_URL="file:../db/api-logs.db"
# PostgreSQL database URLs (uncomment and configure if using PostgreSQL)
# DATABASE_PROVIDER="postgresql"
# DATABASE_URL="postgresql://user:password@localhost:5432/sprout_track"
# LOG_DATABASE_URL="postgresql://user:password@localhost:5432/sprout_track_logs"
ENABLE_LOG="false"
# The name of the systemd service (Example: my-app.service)
SERVICE_NAME="baby-tracker"
#The time in seconds that the authentication token is valid before being logged out
AUTH_LIFE="86400"
#The idle time before being logged out
IDLE_TIME="604800"
# Refresh token lifetime in seconds (default 7 days). Sliding window: resets on each refresh.
# Active devices stay logged in indefinitely. This is the max gap of inactivity before re-login.
REFRESH_TOKEN_LIFE="604800"
# Version of the app
APP_VERSION="1.2.3"
# Whether to set cookies as secure (requires HTTPS)
COOKIE_SECURE="false"
# Encryption hash for local deployment data encryption
ENC_HASH="72f97c23b3724ed3888ba631a8c23fbac075f6ea5790d65aeb1c39cfafd56f8a"
# Enable push notification infrastructure
ENABLE_NOTIFICATIONS="true"
# Secret for securing the notification cron endpoint (auto-generated if empty)
NOTIFICATION_CRON_SECRET="auto-generated"
# ST-Guardian configuration (update service)
# Set ST_GUARDIAN_KEY to enable the System Updates section in App Configuration
ST_GUARDIAN_KEY="dev-secret-key-123"
ST_GUARDIAN_PORT="3001"