mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 05:07:00 +01:00
Production's SMTP credential has answered "Login denied" since at least
2026-09-05, so every send that "fell back" to it delivered nothing while the
code reported a provider. Mail now goes through Resend (@bitbaum/mail-kit),
or Listmonk when enabled with Resend behind it; a Resend failure is reported
as { success: false } instead of handed to a relay that cannot log in.
Removes transporter.ts, the Brevo probe script, EMAIL_* env, the nodemailer
dependency and its override, and rewrites the email docs to match.
177 lines
6.0 KiB
Bash
177 lines
6.0 KiB
Bash
# Frontend Environment Configuration
|
|
|
|
# ====================
|
|
# REQUIRED VARIABLES
|
|
# ====================
|
|
|
|
# Admin Authentication (REQUIRED)
|
|
# JWT secret for admin session tokens - use a long random string
|
|
JWT_SECRET=your_jwt_secret_min_32_characters_long
|
|
|
|
# Auth.js secret - required for session encryption
|
|
AUTH_SECRET=your_auth_secret_min_32_characters_long
|
|
|
|
# "Sign in with OrangeCat" (orangecat ADR-0009, D8). OrangeCat is the fleet's
|
|
# identity root; with this pair set, /auth/login shows the button and the
|
|
# profile page offers "Connect OrangeCat". Register the client on the
|
|
# OrangeCat box: scripts/oauth/register-client.ts --client evig, redirect
|
|
# https://evig.orangecat.ch/api/auth/callback/orangecat. Leave unset to hide.
|
|
# ORANGECAT_OAUTH_ISSUER=https://orangecat.ch
|
|
# ORANGECAT_OAUTH_CLIENT_ID=evig
|
|
# ORANGECAT_OAUTH_CLIENT_SECRET=
|
|
|
|
# Admin password configuration
|
|
# --------------------------
|
|
# DEVELOPMENT: Use plain text password (NOT secure, dev only!)
|
|
# ADMIN_PASSWORD=your_dev_password
|
|
#
|
|
# PRODUCTION: Use bcrypt hash (REQUIRED for NODE_ENV=production)
|
|
# Generate with: npx bcrypt-cli hash "your-password" 12
|
|
# Or: node -e "require('bcrypt').hash('your-password', 12).then(console.log)"
|
|
#
|
|
# Example bcrypt hash format: $2b$12$LQv3c1yqBWVHxkd0LHAkCOYz6TtxMQJqhN8/X4Bq4z.4AqGwq.2Ym
|
|
ADMIN_PASSWORD_HASH=
|
|
|
|
# ====================
|
|
# API CONFIGURATION
|
|
# ====================
|
|
|
|
# Content Management System API URL
|
|
NEXT_PUBLIC_REBOOT_CONTENT_URL=http://localhost:3001
|
|
# CMS API authentication token
|
|
REBOOT_CONTENT_TOKEN=your_cms_api_token
|
|
|
|
# Public site configuration
|
|
NEXT_PUBLIC_API_URL=http://localhost:3001
|
|
NEXT_PUBLIC_SITE_URL=http://localhost:3000
|
|
|
|
# ====================
|
|
# EMAIL CONFIGURATION (Required for Auth Emails)
|
|
# ====================
|
|
|
|
# IMPORTANT: Email is REQUIRED for user registration, password reset, and verification.
|
|
# Choose ONE of the two options below:
|
|
|
|
# Option 1: Resend via @bitbaum/mail-kit (fleet standard)
|
|
# -----------------------------------------
|
|
# The shared fleet key lives in /opt/fleet/env on the box. RESEND_FROM is
|
|
# optional: the default is "<org> <evig@fleetcrown.orangecat.ch>".
|
|
|
|
RESEND_API_KEY=re_your_key
|
|
# RESEND_FROM=Evig <evig@fleetcrown.orangecat.ch>
|
|
|
|
# Option 2: Listmonk (FOSS Alternative)
|
|
# -----------------------------------------
|
|
# Open-source newsletter + transactional email platform
|
|
# Install: https://listmonk.app/docs/installation/
|
|
# Uncomment below if using Listmonk instead of Resend
|
|
|
|
# LISTMONK_ENABLED=true
|
|
# LISTMONK_URL=http://localhost:9090
|
|
# LISTMONK_USERNAME=admin
|
|
# LISTMONK_PASSWORD=your-listmonk-password
|
|
# LISTMONK_FROM_EMAIL=noreply@revamp-it.ch
|
|
# LISTMONK_FROM_NAME=RevampIT
|
|
|
|
# ====================
|
|
# DATABASE (Optional)
|
|
# ====================
|
|
|
|
# Database connection string (if needed by frontend)
|
|
# Local dev (Docker): postgresql://postgres:postgres@localhost:5433/revampit_cms
|
|
# DATABASE_URL=postgresql://postgres:your_password@localhost:5433/revampit_cms
|
|
|
|
# ====================
|
|
# TINACMS (Optional)
|
|
# ====================
|
|
|
|
# TinaCMS configuration - only needed if using TinaCMS
|
|
# NEXT_PUBLIC_TINA_CLIENT_ID=your_tina_client_id
|
|
# TINA_TOKEN=your_tina_token
|
|
|
|
# ====================
|
|
# ANALYTICS (Optional)
|
|
# ====================
|
|
|
|
# Google Analytics tracking ID
|
|
# NEXT_PUBLIC_GA_ID=your_google_analytics_id
|
|
|
|
# ====================
|
|
# SITE METADATA
|
|
# ====================
|
|
|
|
NEXT_PUBLIC_SITE_NAME=RevampIT
|
|
NEXT_PUBLIC_SITE_DESCRIPTION=Sustainable Technology for Everyone
|
|
|
|
# ====================
|
|
# AI SERVICES (Optional)
|
|
# ====================
|
|
|
|
# Groq API key (REQUIRED for Hirn AI and AI Produkterfassung)
|
|
# Get free key at: https://console.groq.com
|
|
GROQ_API_KEY=gsk_xxx
|
|
|
|
# Transcription service URL (local Whisper)
|
|
# Start with: npm run transcription:start
|
|
TRANSCRIPTION_URL=http://localhost:5111
|
|
|
|
# Ollama URL (local LLM - for local embeddings only)
|
|
OLLAMA_URL=http://localhost:11434
|
|
OLLAMA_MODEL=llama3.2
|
|
|
|
# ====================
|
|
# PAYMENT PROCESSING (Optional)
|
|
# ====================
|
|
|
|
# Payrexx payment gateway (Swiss payment provider)
|
|
# Required for marketplace orders and service bookings
|
|
# Get credentials at: https://www.payrexx.com
|
|
# PAYREXX_INSTANCE=your_instance_name
|
|
# PAYREXX_API_SECRET=your_api_secret
|
|
# PAYREXX_WEBHOOK_SECRET=your_webhook_secret
|
|
|
|
# ====================
|
|
# FILE STORAGE (Production)
|
|
# ====================
|
|
|
|
# S3-compatible object storage (Hetzner Object Storage) — REQUIRED for
|
|
# production image/document uploads. Falls back to local-fs when unset (dev).
|
|
# S3_ENDPOINT=https://fsn1.your-objectstorage.com
|
|
# S3_REGION=fsn1
|
|
# S3_BUCKET=revampit-media
|
|
# S3_ACCESS_KEY_ID=your_access_key
|
|
# S3_SECRET_ACCESS_KEY=your_secret_key
|
|
# S3_PUBLIC_URL=https://media.revampit.orangecat.ch
|
|
# S3_FORCE_PATH_STYLE=true
|
|
|
|
# ====================
|
|
# ENVIRONMENT
|
|
# ====================
|
|
|
|
# NODE_ENV is automatically set by Next.js (development, production, test)
|
|
# NODE_ENV=development
|
|
|
|
# ====================
|
|
# KIVVI ERP INTEGRATION
|
|
# ====================
|
|
# Connects RevampIT to Kivvi for inventory records, invoicing, and accounting.
|
|
# Without these vars the integration is silently skipped (safe for local dev).
|
|
# KIVVI_API_URL=https://kivvi.orangecat.ch
|
|
# KIVVI_API_TOKEN=kv_...
|
|
# KIVVI_DEFAULT_WAREHOUSE_ID=<warehouse-uuid-from-kivvi-settings>
|
|
# Shared secret for the REVERSE sync — Kivvi signs each inbound item-change
|
|
# webhook (POST /api/webhooks/kivvi) with a hex HMAC-SHA256 of the raw body in
|
|
# the X-Kivvi-Signature header. Must match the endpoint secret configured in
|
|
# Kivvi. Unset → the receiver fails closed (rejects all webhooks).
|
|
# KIVVI_WEBHOOK_SECRET=<shared-secret-from-kivvi-webhook-settings>
|
|
|
|
# ====================
|
|
# E2E TEST ACCOUNTS
|
|
# ====================
|
|
# Comma-separated list of account emails whose requests skip the abuse rate
|
|
# limits during the prod dual-persona smoke (scripts/e2e-inventory-prod.sh).
|
|
# Read by src/config/e2e-test-accounts.ts. Server-only — never NEXT_PUBLIC_.
|
|
# UNSET IS THE SAFE DEFAULT: an empty list exempts nobody. Set it only on the
|
|
# environment that actually runs the smoke, and only to accounts you control.
|
|
# E2E_TEST_ACCOUNT_EMAILS=persona.one@example.com,persona.two@example.org
|