Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -14,23 +14,37 @@
# BRAND_MAIL_LINK=#2563eb
# Core
APP_NAME=ToolCTRL
APP_NAME=HiveGrid
# DATABASE_URL: pooled connection for application traffic. Point at PgBouncer
# on port 6432 in environments where the pooler is deployed and append
# `?pgbouncer=true&connection_limit=10` so Prisma disables prepared-statement
# caching (transaction-mode pooling cannot keep them). DIRECT_URL (below) is
# the unpooled connection used by `prisma migrate`. See docs/ops/pgbouncer.md.
DATABASE_URL="postgres://user:pass@localhost:6432/boilerplate?pgbouncer=true&connection_limit=10"
DATABASE_URL="postgres://user:pass@localhost:6432/hivegrid?pgbouncer=true&connection_limit=10"
# SESSION_SECRET signs the session cookie. Min 32 bytes of entropy recommended (openssl rand -hex 32).
SESSION_SECRET=
# CRYPTO_SECRET is the AES key for stored workflow credentials. Use a SEPARATE secret from SESSION_SECRET.
CRYPTO_SECRET=
APP_BASE_DOMAIN=localhost
WEB_APP_HOST=app.localhost
# Local dev: include the vite port so cross-host redirects (login -> app/admin host)
# keep :3000 — routing derives app.localhost:3000 etc. and hostMatches tolerates it.
APP_BASE_DOMAIN=localhost:3000
WEB_APP_HOST=app.localhost:3000
# Public app origin used for embed snippets, mail links, and worker-to-web callbacks.
# APP_URL=http://app.localhost:3000
ADMIN_APP_HOST=admin.localhost
API_HOST=api.localhost
ADMIN_APP_HOST=admin.localhost:3000
API_HOST=api.localhost:3000
# MCP runs as its own public connector host, not below app/api.
MCP_HOST=0.0.0.0
MCP_PORT=8080
MCP_ALLOWED_HOSTS=mcp.hivegrid.de,staging-mcp.hivegrid.de,localhost,127.0.0.1,::1
MCP_ALLOWED_ORIGINS=https://mcp.hivegrid.de,https://staging-mcp.hivegrid.de,http://localhost,http://127.0.0.1
# Public MCP resource origin and OAuth authorization-server origin. Set staging to
# https://staging-mcp.hivegrid.de and https://staging-app.hivegrid.de.
MCP_RESOURCE_URL=http://mcp.localhost:8080
MCP_AUTHORIZATION_SERVER_URL=http://app.localhost:3000
# Optional dedicated HMAC secret for hash-only MCP OAuth codes/tokens. When unset,
# API_KEY_HASH_SECRET is reused so web and mcp agree on token lookup.
MCP_OAUTH_TOKEN_HASH_SECRET=
# APP_PROTOCOL=http
# Legacy API/auth tokens
@@ -40,6 +54,8 @@ JWT_SECRET=
# disabled. Set to `true` ONLY during the hash-metadata backfill window, then set
# back to `false` once the backfill is verified.
API_KEY_LEGACY_PLAINTEXT_FALLBACK=false
# Stable HMAC secret for legacy API-key hash lookup/backfill. Keep unchanged once deployed.
API_KEY_HASH_SECRET=
# Local development
# Set to true only for disposable local databases when you want sample tenants/users.
@@ -66,11 +82,18 @@ STORAGE_PUBLIC_BASE_URL=
STORAGE_FORCE_PATH_STYLE=false
# Billing
STRIPE_SK=
STRIPE_WEBHOOK_SIGNING_SECRET=
STRIPE_ACCOUNT_COUNTRY=US
# Lago is self-hosted and used for billing plans, seats, subscriptions and invoices.
# Do not append /api/v1; the gateway adds it.
LAGO_API_URL=
LAGO_API_KEY=
LAGO_WEBHOOK_SECRET=
LAGO_TIMEOUT_MS=10000
# Mollie is used only as payment processor. Keep test/live keys in the secret store.
MOLLIE_API_KEY=
MOLLIE_PROFILE_ID=
MOLLIE_TIMEOUT_MS=10000
# Worker delivery credentials for queued transactional email (toolctrl.email -> Mailjet)
# Worker delivery credentials for queued transactional email (hivegrid.email -> Mailjet)
MAILJET_API_KEY=
MAILJET_SECRET_KEY=
MAILJET_FROM_EMAIL=
@@ -87,9 +110,19 @@ INTEGRATIONS_CONTACT_FORMSPREE=
# Analytics (First-Party-Ingestion-Token; Google Analytics wurde EU-sterilisiert entfernt — R-P1a)
ANALYTICS_TOKEN=
# mCaptcha (self-hosted PoW captcha — see infra/mcaptcha/README.md). Public bits
# (instance URL + per-surface sitekeys) are safe to expose; the account secret is
# server-only. Verification fails open by default (CAPTCHA_FAIL_OPEN).
# Self-hosted captcha. mCaptcha remains the compatibility default; set
# CAPTCHA_PROVIDER=cap to use Cap Standalone (see infra/cap/README.md).
# Public bits (instance URL + per-surface sitekeys) are safe to expose; secrets
# are server-only. Verification fails open by default (CAPTCHA_FAIL_OPEN).
CAPTCHA_PROVIDER=mcaptcha
CAP_INSTANCE_URL=
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=
@@ -197,21 +230,21 @@ MEILI_API_KEY=devkey
# DIRECT_URL: unpooled Postgres URL (port 5432, bypasses PgBouncer). Required
# by `prisma migrate` / `db push` so prepared statements survive. Apps still
# use DATABASE_URL (above) for runtime queries. See docs/ops/pgbouncer.md.
# DIRECT_URL="postgres://user:pass@localhost:5432/boilerplate"
# DIRECT_URL="postgres://user:pass@localhost:5432/hivegrid"
# DATABASE_READ_URL: optional Postgres read-replica used by getReadDbClient()
# for hot-read paths (CRM/KB listings, dashboards, public sites/portals).
# When unset or empty, getReadDbClient() falls back to DATABASE_URL so single-
# DB dev and self-hosted setups work without any code change. Point at the
# replica (or a PgBouncer-fronted replica) in staging/production. Replication
# is eventually consistent — see docs/architecture/rw-split.md.
# DATABASE_READ_URL="postgres://read_user:pass@replica.localhost:5432/boilerplate"
# DATABASE_READ_URL="postgres://read_user:pass@replica.localhost:5432/hivegrid"
# SERVER_URL=https://app.example.com
# VERCEL_URL=
# Observability (opt-in; leave commented to keep the safe noop reporter and disabled tracing)
# SENTRY_DSN=https://public@sentry.example/1
# API (apps/api) and Worker (apps/worker) — independent DSNs so the two
# processes report to separate Sentry projects (boilerplate-api / boilerplate-worker).
# processes report to separate Sentry projects (hivegrid-api / hivegrid-worker).
# SENTRY_DSN_API=https://public-api@sentry.example/3
# SENTRY_DSN_WORKER=https://public-worker@sentry.example/4
# SENTRY_ENVIRONMENT=production
@@ -224,14 +257,14 @@ MEILI_API_KEY=devkey
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318/v1/traces
# Comma-separated key=value headers forwarded with every OTLP export.
# OTEL_EXPORTER_OTLP_HEADERS=x-sentry-auth=Sentry sentry_key=<public-key>
# OTEL_SERVICE_NAME=boilerplate-api
# OTEL_SERVICE_NAME=hivegrid-api
# OTEL_TRACES_SAMPLER=parentbased_traceidratio
# OTEL_TRACES_SAMPLER_ARG=0.1
# OTEL_LOG_LEVEL=debug
# Browser-side OTel (Vite-bundled). VITE_OTEL_EXPORTER_OTLP_ENDPOINT must be
# CORS-reachable from the user agent; gateway/relay MUST be rate-limited.
# VITE_OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com/v1/traces
# VITE_OTEL_SERVICE_NAME=boilerplate-web
# VITE_OTEL_SERVICE_NAME=hivegrid-web
# Web (apps/web) — separate Sentry project from the API/Worker stack.
# SENTRY_DSN_WEB=https://public-web@sentry.example/2
# VITE_SENTRY_DSN_WEB=https://public-web@sentry.example/2
@@ -243,14 +276,14 @@ MEILI_API_KEY=devkey
# Required by .github/workflows/_sentry-release.yml and the @sentry/vite-plugin step.
# SENTRY_AUTH_TOKEN=
# SENTRY_ORG=
# SENTRY_PROJECT=boilerplate-web
# SENTRY_URL=https://sentry.boiler.saas-ctrl.com
# SENTRY_PROJECT=hivegrid-web
# SENTRY_URL=https://sentry.saas-ctrl.com
# Asset CDN (opt-in; leave commented to keep origin-relative asset URLs).
# When set at build time, Vite emits all asset URLs prefixed with this origin
# so the CDN (Bunny.net by default — see docs/ops/asset-cdn.md) can pull from
# the app server and serve users from the edge. Local dev ignores the var.
# ASSET_CDN_URL=https://cdn.boiler.saas-ctrl.com
# ASSET_CDN_URL=https://cdn.hivegrid.de
# Bunny.net pull-zone id used by the post-deploy purge step. CI-only.
# BUNNY_PULL_ZONE_ID=
# Bunny.net account-level API key for cache-purge calls. CI-only.
@@ -278,10 +311,10 @@ MEILI_API_KEY=devkey
# Region tag surfaced in /status. Falls back to FLY_REGION when unset.
# APP_REGION=
# Backup CLI (@toolctrl/cli). See docs/operations/backup.md for the full runbook.
# Backup CLI (@hivegrid/cli). See docs/operations/backup.md for the full runbook.
# BACKUP_S3_ENDPOINT=https://s3.example.com
# BACKUP_S3_REGION=us-east-1
# BACKUP_S3_BUCKET=toolctrl-backups
# BACKUP_S3_BUCKET=hivegrid-backups
# BACKUP_S3_ACCESS_KEY_ID=
# BACKUP_S3_SECRET_ACCESS_KEY=
# BACKUP_S3_SESSION_TOKEN=
@@ -303,8 +336,8 @@ MEILI_API_KEY=devkey
# Embeddable form widget (Phase 05 #58 — packages/form-widget).
# FORM_WIDGET_CDN_URL serves /embed/widget.js. Falls back to APP_URL when unset.
# Captcha on form submissions uses the shared mCaptcha instance (MCAPTCHA_* at
# the top of this file), opt-in per form AND gated behind the
# Captcha on form submissions uses the shared self-hosted captcha provider
# configured at the top of this file, opt-in per form AND gated behind the
# `form-widget-turnstile` feature flag. See docs/features/form-widget.md.
# FORM_WIDGET_CDN_URL=https://forms.example.com
@@ -313,7 +346,7 @@ MEILI_API_KEY=devkey
# allowed) from which the public `/api/leads/capture` endpoint accepts
# submissions. Fail-closed: empty list rejects all browser submissions.
# MARKETING_RATE_LIMIT_PER_MIN is the per-IP submission limit (default 5).
# Captcha is the shared mCaptcha instance (MCAPTCHA_*); flag is gated via
# Captcha is the shared self-hosted captcha provider; flag is gated via
# the `marketing-funnel-turnstile` feature flag.
# See docs/features/marketing-funnel.md.
# MARKETING_ALLOWED_ORIGINS=https://marketing.example.com,https://*.example.com
@@ -374,10 +407,10 @@ MEILI_API_KEY=devkey
# Admin-Panel SSO via Authentik (Phase 09 #82 — apps/web/app/modules/admin-sso)
# ---------------------------------------------------------------------------
# AUTHENTIK_ISSUER_URL is the OIDC issuer published by the Authentik
# `toolctrl-admin-panel` provider (matches the `iss` claim in ID-tokens).
# Typically `https://auth.<domain>/application/o/toolctrl-admin-panel/`.
# `hivegrid-admin-panel` provider (matches the `iss` claim in ID-tokens).
# Typically `https://auth.<domain>/application/o/hivegrid-admin-panel/`.
# AUTHENTIK_ADMIN_CLIENT_ID must equal the blueprint client_id
# (`toolctrl-admin-panel` per infra/authentik/bootstrap/blueprints/03-*).
# (`hivegrid-admin-panel` per infra/authentik/bootstrap/blueprints/03-*).
# AUTHENTIK_ADMIN_CLIENT_SECRET is fetched from the Authentik admin UI
# after the blueprint applies; rotate via Authentik then redeploy.
# AUTHENTIK_ADMIN_REDIRECT_URI is the exact callback URI registered with
@@ -393,58 +426,14 @@ MEILI_API_KEY=devkey
# short (1-2 bootstrap accounts max). Each fallback login emits an
# `admin.login.fallback.success` audit event tagged severity=warn.
# See docs/operations/admin-sso.md.
# AUTHENTIK_ISSUER_URL=https://auth.example.com/application/o/toolctrl-admin-panel/
# AUTHENTIK_ADMIN_CLIENT_ID=toolctrl-admin-panel
# AUTHENTIK_ISSUER_URL=https://auth.example.com/application/o/hivegrid-admin-panel/
# AUTHENTIK_ADMIN_CLIENT_ID=hivegrid-admin-panel
# AUTHENTIK_ADMIN_CLIENT_SECRET=
# AUTHENTIK_ADMIN_REDIRECT_URI=https://admin.example.com/auth/admin/callback
# AUTHENTIK_ADMIN_POST_LOGOUT_REDIRECT_URI=https://admin.example.com/admin/login?logged_out=1
# AUTHENTIK_ADMIN_POST_LOGOUT_REDIRECT_URI=https://admin.example.com/login?logged_out=1
# ADMIN_FALLBACK_LOGIN_ENABLED=false
# ADMIN_FALLBACK_LOGIN_EMAILS=
# ---------------------------------------------------------------------------
# Capacitor mobile + push backend (Phase 08 #65 — apps/mobile + apps/worker)
# ---------------------------------------------------------------------------
# FCM_SERVICE_ACCOUNT_JSON holds the Firebase Cloud Messaging service account
# credentials used by the worker push job to dispatch Android notifications.
# Accepted formats: (1) raw JSON, (2) base64-encoded JSON. Generate via the
# Firebase console (Project settings → Service accounts → Generate new
# private key). NEVER commit this — it grants full FCM send rights.
#
# APNS_KEY is the PEM contents of the .p8 Apple Push Notification Service
# signing key (a standard PKCS#8 PEM block). APNS_KEY_ID is the 10-character
# key id shown in the Apple Developer console next to the generated .p8 file.
# APNS_TEAM_ID is the 10-character developer team id.
# APNS_BUNDLE_ID defaults to de.toolctrl.app (matches capacitor.config.ts
# > appId); override only when shipping a re-branded fork.
#
# MOBILE_LIVE_RELOAD_URL is a dev-only convenience: when set, apps/mobile
# emits a Capacitor `server.url` in capacitor.config.ts so the native shell
# loads the running web dev server (typically http://192.168.x.x:3000)
# instead of the bundled webDir. Leave empty for production builds.
# See docs/operations/capacitor.md.
# FCM_SERVICE_ACCOUNT_JSON=
# APNS_KEY=
# APNS_KEY_ID=
# APNS_TEAM_ID=
# APNS_BUNDLE_ID=de.toolctrl.app
# MOBILE_LIVE_RELOAD_URL=
# ---------------------------------------------------------------------------
# AI-cost Phase 3 — Stripe overage billing (apps/worker cron + reconcile)
# ---------------------------------------------------------------------------
# AI_OVERAGE_SUBMISSION_ENABLED is the master killswitch for the nightly
# Stripe Billing Meter event submitter. When `false` (or `0`), AI events are still
# marked `isOverage = true` + `markedUpCostCents` populated, but the cron
# skips Stripe. Default: enabled when STRIPE_SK is configured. Use this to
# pause submissions during an incident; the next enabled run backfills via
# `stripeReportedAt IS NULL`.
#
# Per-plan markup multiplier + Stripe identifiers ship in
# `packages/entitlements/src/ai-overage.ts` (`standardAIOverageDefaults`).
# Configure live Stripe ids via /admin/settings/pricing/ai-overage (admin
# UI writes an audit log) and/or per-tenant overrides on
# `Tenant.aiQuotaOverrideJson` — see docs/features/ai-cost-billing.md.
# AI_OVERAGE_SUBMISSION_ENABLED=true
# Phase 06: Plugin output sanitization (strict|moderate|off)
PLUGIN_OUTPUT_SANITIZATION_STRICTNESS=moderate