# Required core APP_NAME=HiveGrid # DATABASE_URL points at PgBouncer (port 6432) for application traffic. # Append `?pgbouncer=true&connection_limit=10` so Prisma disables prepared- # statement caching (transaction-mode pooling cannot keep them). DIRECT_URL # below is the unpooled link used by Prisma Migrate. See docs/ops/pgbouncer.md. DATABASE_URL="postgres://{USER}:{PASSWORD}@{POOL_HOST}:6432/{DATABASE}?pgbouncer=true&connection_limit=10" # Explicit node-postgres/PrismaPg process pool cap. Initial production values: # hivegrid-web=10; hivegrid-portal=5. Every other runtime sets its own approved # positive value. The URL connection_limit does not replace this runtime cap. DATABASE_POOL_MAX=10 # Runtime traffic must authenticate directly as the restricted NOBYPASSRLS # role. The migration user belongs only in DIRECT_URL. RLS_RUNTIME_MODE=required # Every worker resource needs its own DATABASE_URL whose username is # hivegrid_worker, plus this explicit override: DATABASE_RUNTIME_ROLE=hivegrid_worker. DATABASE_RUNTIME_ROLE=hivegrid_app # Required on the web resource when Authentik Admin SSO is enabled. Use a # separate PgBouncer credential for the execute-only callback capability. # AUTHENTIK_ADMIN_JIT_DATABASE_URL="postgres://hivegrid_authentik_jit:{PASSWORD}@{POOL_HOST}:6432/{DATABASE}?pgbouncer=true&connection_limit=2" # The same immutable web image serves two isolated resources. Core uses the # values below; hivegrid-portal changes the surface and DB role, removes # SESSION_SECRET, and injects only PORTAL_SESSION_SECRET. WEB_RUNTIME_SURFACE=core SESSION_SECRET= # WEB_RUNTIME_SURFACE=portal # DATABASE_RUNTIME_ROLE=hivegrid_portal # DATABASE_POOL_MAX=5 # PORTAL_SESSION_SECRET= AUDIT_CHAIN_SECRET= CRYPTO_SECRET= ADMIN_CONNECTION_MASTER_KEY= APP_BASE_DOMAIN=your-domain.invalid WEB_APP_HOST=app.your-domain.invalid ADMIN_APP_HOST=admin.your-domain.invalid API_HOST=api.your-domain.invalid PORTAL_APP_HOST=portal.your-domain.invalid MCP_HOST=0.0.0.0 MCP_PORT=8080 MCP_ALLOWED_HOSTS=mcp.your-domain.invalid,staging-mcp.your-domain.invalid MCP_ALLOWED_ORIGINS=https://mcp.your-domain.invalid,https://staging-mcp.your-domain.invalid MCP_RESOURCE_URL=https://mcp.your-domain.invalid MCP_AUTHORIZATION_SERVER_URL=https://app.your-domain.invalid APP_PROTOCOL=https # Required for current legacy API/auth endpoints API_ACCESS_TOKEN= JWT_SECRET= API_KEY_LEGACY_PLAINTEXT_FALLBACK=false API_KEY_HASH_SECRET= # Required if public analytics ingestion is enabled ANALYTICS_TOKEN= # Production/runtime platform NODE_ENV=production # DIRECT_URL: unpooled Postgres URL (port 5432, bypasses PgBouncer). Required # so Prisma Migrate keeps prepared statements alive. See docs/ops/pgbouncer.md. DIRECT_URL="postgres://{USER}:{PASSWORD}@{POSTGRES_HOST}:5432/{DATABASE}" # Optional Postgres read-replica for hot-read paths (CRM/KB listings, # dashboards, public sites/portals). Falls back to DATABASE_URL when # unset — single-DB deploys keep working unchanged. Use a read-only DB # user (GRANT SELECT) and ideally a PgBouncer-fronted replica endpoint. # Replication is eventually consistent. See docs/architecture/rw-split.md. # DATABASE_READ_URL="postgres://{READ_USER}:{PASSWORD}@{REPLICA_HOST}:6432/{DATABASE}?pgbouncer=true&connection_limit=10" # SERVER_URL=https://app.example.com # Optional Aircall Technology Partner OAuth integration. Values are environment- # specific Coolify secrets; callback and webhook URLs must match the Aircall app. # AIRCALL_CLIENT_ID= # AIRCALL_CLIENT_SECRET= # AIRCALL_REDIRECT_URI=https://app.your-domain.invalid/integrations/aircall/oauth/callback # AIRCALL_WEBHOOK_URL=https://api.your-domain.invalid/v1/webhooks/telephony/aircall # Optional KWP OAuth2/PKCE integration. Configure values as environment-specific # Coolify secrets; the callback URI is derived from APP_PROTOCOL and WEB_APP_HOST. # KWP_OAUTH_CLIENT_ID= # KWP_OAUTH_CLIENT_SECRET= # KWP_OAUTH_SCOPES= # KWP_CUSTOMER_CODE= # KWP_OIDC_ISSUER= # KWP_HIVEGRID_TENANT_ID= # Deprecated and ignored by new connections; choose the bnWin mandant in the setup flow. # KWP_MANDANT= # Web Push for ringing notifications. Production web requires the public key; # worker-webhook requires the complete stable pair from the same Coolify secret source. WEB_PUSH_VAPID_SUBJECT=mailto:ops@hivegrid.de WEB_PUSH_VAPID_PUBLIC_KEY= WEB_PUSH_VAPID_PRIVATE_KEY= # Production seed bootstrap. Set in Coolify before first migration/seed run; blank values are rejected. # SEED_ADMIN_EMAIL=owner@example.com # SEED_ADMIN_PASSWORD=replace-with-a-strong-one-time-bootstrap-password # Optional providers; MailerSend is the default transactional runtime provider STORAGE_ENDPOINT= STORAGE_REGION= STORAGE_BUCKET= STORAGE_ACCESS_KEY_ID= STORAGE_SECRET_ACCESS_KEY= STORAGE_SESSION_TOKEN= STORAGE_PUBLIC_BASE_URL= STORAGE_FORCE_PATH_STYLE=false # Public build-time browser endpoint; the Gitea deploy maps the repository # variable with the same name into the web-only Docker build. VITE_HOCUSPOCUS_URL= CHAT_GATEWAY_AUTH_SECRET= MAILJET_API_KEY= MAILJET_SECRET_KEY= MAILJET_FROM_EMAIL= # MAILJET_FROM_NAME= MAILJET_WEBHOOK_SECRET= SUPPORT_EMAIL= COMPANY_NAME= COMPANY_ADDRESS= INTEGRATIONS_CONTACT_FORMSPREE= CAPTCHA_PROVIDER=cap CAP_INSTANCE_URL=https://captcha.hivegrid.de CAP_SITE_SECRET= CAP_SITE_SECRET_LOGIN= CAP_SITE_SECRET_FORMS= CAP_SITE_SECRET_BOOKING= CAP_SITEKEY_LOGIN= CAP_SITEKEY_FORMS= CAP_SITEKEY_BOOKING= MCAPTCHA_INSTANCE_URL= MCAPTCHA_ACCOUNT_SECRET= MCAPTCHA_SITEKEY_LOGIN= MCAPTCHA_SITEKEY_FORMS= MCAPTCHA_SITEKEY_BOOKING= CAPTCHA_FAIL_OPEN=false AUTH_MAGIC_LINK_ENABLED=false AUTH_MAGIC_LINK_TOKEN_TTL_MINUTES=15 NOTIFICATIONS_NOVU_API_KEY= # Set WORKER_ENABLED=true only on the worker resource. Leave it unset for web/API resources. # WORKER_ENABLED=false EXPORT_RETENTION_QUEUE_ENABLED=false IMPORT_QUEUE_ENABLED=false # Dedicated worker-import mode only: both IMPORT_QUEUE_* gates false/unset and complete STORAGE_* required. PORTAL_GDPR_EXPORT_QUEUE_ENABLED=false # Set this on worker resources only. # BULLMQ_REDIS_URL=redis://default:@redis.your-domain.invalid:6379/0 # REDIS_URL is required by MCP in production and a queue fallback elsewhere; keep it commented if the platform injects it. # REDIS_URL=redis://localhost:6379/0 # Plugin worker runtime. Set these on WORKER_QUEUE_GROUP=plugin resources. # PLUGIN_TRUSTED_PUBLIC_KEYS= PLUGIN_MAX_FUEL=1000000 PLUGIN_MAX_MEMORY_MB=64 PLUGIN_MAX_WALL_CLOCK_MS=5000 PLUGIN_RATE_LIMIT_PER_MINUTE=100 PLUGIN_RATE_LIMIT_WINDOW_SECONDS=60 PLUGIN_OUTPUT_SANITIZATION_STRICTNESS=moderate BROWSER_RUNTIME_URL= BROWSER_RUNTIME_API_KEY= BROWSER_SESSION_TIMEOUT_MS=60000 IPSTACK_API_KEY= IPAPIIS_API_KEY= # SITE_KEY_EXAMPLE_SITE=