- Wire admin approval UI to editorialService.approveEditorial so editorial accounts can move pending_approval -> active and log in. The approve button was permanently disabled and the service unreachable, so editorial users could never sign in. - Surface non-validation errors (e.g. SMTP failures) on the registration form instead of silently redirecting to the confirmation page. - Set BETTER_AUTH_URL default to the production domain in .env.example and compose.yaml so verification/reset links and the login origin check resolve against the live origin. - Add scripts/check-smtp.ts to verify SMTP connectivity against the configured transport. Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
821 B
Bash
23 lines
821 B
Bash
# Portal database (separate from Immich)
|
|
DATABASE_URL=postgres://portal:change-me@postgres:5432/portal
|
|
|
|
# Better Auth — production public URL. For local dev, set http://localhost:3000 in .env
|
|
BETTER_AUTH_SECRET=replace-with-a-long-random-secret
|
|
BETTER_AUTH_URL=https://redaktionen.leon-tonhaeuser.de
|
|
|
|
# Internal Immich API access; never expose these values to browsers
|
|
IMMICH_BASE_URL=http://immich-server:2283
|
|
IMMICH_API_KEY=replace-with-a-restricted-immich-api-key
|
|
|
|
# SMTP
|
|
SMTP_HOST=smtp.example.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=portal@example.com
|
|
SMTP_PASSWORD=replace-with-an-smtp-password
|
|
SMTP_FROM=portal@example.com
|
|
|
|
# Legal pages managed outside the application
|
|
LEGAL_IMPRINT_URL=https://example.com/impressum
|
|
LEGAL_PRIVACY_URL=https://example.com/datenschutz
|
|
LEGAL_TERMS_URL=https://example.com/nutzungsbedingungen
|