super-productivity/packages/super-sync-server/.env.example
Johannes Millan 2123ede018 revert(supersync): drop CLEANUP_INITIAL_DELAY_MS env var and 30-min prod default
The throttle in deleteOldSyncedOpsForAllUsers now caps each cleanup pass to
short, bounded batches, so the original "shield warmup from DB-heavy retention
work" rationale no longer applies. A long initial delay only creates a
starvation risk on frequently-restarted deployments (rolling deploys or crash
loops could land inside the 30-min window every time and skip cleanup
entirely).

Revert to a fixed 10s warmup and remove the now-pointless knob from envs, the
compose file, and the Helm chart.
2026-05-13 14:11:15 +02:00

77 lines
2.6 KiB
Text

# SuperSync Server Configuration
# Copy this file to .env and customize the values
# Server port (default: 1900)
PORT=1900
# Data directory for storing sync files and database (default: ./data)
DATA_DIR=./data
# Public URL (used for email links). Set to your public host (with protocol).
# Example: https://sync.example.com
PUBLIC_URL=http://localhost:1900
# JWT Secret for signing authentication tokens
# REQUIRED in production (NODE_ENV=production)
# Use a long, random string (e.g., generated with: openssl rand -base64 32)
JWT_SECRET=change-me-in-production
# PostgreSQL connection (used by Prisma)
# Example assumes local Postgres; adjust user/password/host/db as needed.
DATABASE_URL=postgresql://supersync:superpassword@localhost:5432/supersync_db
# Environment mode
# Set to "production" for production deployments
# NODE_ENV=production
# CORS Configuration
# Enable/disable CORS (default: true)
CORS_ENABLED=true
# Allowed CORS origins (comma-separated)
# Supports:
# - Exact matches: https://app.super-productivity.com
# - Subdomain wildcards: https://*.super-productivity-preview.pages.dev
# - Multiple origins: https://app.example.com,https://*.preview.example.com,http://localhost:4200
# Use "*" to allow all origins (NOT recommended for production)
# Default includes: https://app.super-productivity.com and preview deployments
CORS_ORIGINS=https://app.super-productivity.com,https://*.super-productivity-preview.pages.dev
# Cleanup throttling
# Defaults are safe for production even when omitted.
OLD_OPS_CLEANUP_DELETE_BATCH_SIZE=5000
OLD_OPS_CLEANUP_MAX_DELETED_PER_RUN=25000
# Email
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM="SuperSync <your-email@gmail.com>"
# Privacy Policy - Address for German legal requirements (Impressum)
# These values are injected into privacy.html on server startup
PRIVACY_CONTACT_NAME=Your Name
PRIVACY_ADDRESS_STREET=Street 123
PRIVACY_ADDRESS_CITY=12345 City
PRIVACY_ADDRESS_COUNTRY=Germany
PRIVACY_CONTACT_EMAIL=contact@example.com
# WebAuthn / Passkey Configuration
# RP (Relying Party) Name shown to users during passkey registration
WEBAUTHN_RP_NAME=Super Productivity Sync
# RP ID must match your domain (without protocol/port)
# For local development: localhost
# For production: your-domain.com
WEBAUTHN_RP_ID=localhost
# Origin must match where users access the auth UI (with protocol)
# For local development: http://localhost:1900
# For production: https://your-domain.com
WEBAUTHN_ORIGIN=http://localhost:1900
# GITHUB DEPLOY
GHCR_USER=uuuser
GHCR_TOKEN=TOOOOKEN