new env.example
This commit is contained in:
74
env.example
74
env.example
@@ -1,42 +1,66 @@
|
|||||||
# Database
|
# ===========================================
|
||||||
|
# Secure Portal - Environment Configuration
|
||||||
|
# ===========================================
|
||||||
|
# Kopieren nach .env und Werte anpassen:
|
||||||
|
# cp .env.example .env
|
||||||
|
#
|
||||||
|
# Secrets generieren:
|
||||||
|
# openssl rand -base64 32
|
||||||
|
# ===========================================
|
||||||
|
|
||||||
|
# ----- Datenbank (PostgreSQL) -----
|
||||||
POSTGRES_USER=portal_user
|
POSTGRES_USER=portal_user
|
||||||
POSTGRES_PASSWORD=your_secure_password
|
POSTGRES_PASSWORD=change_this_password
|
||||||
POSTGRES_DB=secure_portal
|
POSTGRES_DB=secure_portal
|
||||||
|
|
||||||
# Redis
|
# ----- Redis -----
|
||||||
REDIS_PASSWORD=your_redis_password
|
REDIS_PASSWORD=change_this_redis_password
|
||||||
|
|
||||||
# JWT Secrets (generate with: openssl rand -base64 32)
|
# ----- JWT Secrets (WICHTIG: ändern!) -----
|
||||||
JWT_ACCESS_SECRET=your_access_secret
|
# Generieren mit: openssl rand -base64 32
|
||||||
JWT_REFRESH_SECRET=your_refresh_secret
|
JWT_ACCESS_SECRET=change_this_secret_key_for_production_32_chars
|
||||||
|
JWT_REFRESH_SECRET=change_this_refresh_secret_key_production_32
|
||||||
|
|
||||||
# Encryption (32 characters)
|
# ----- Encryption Key (WICHTIG: exakt 32 Zeichen!) -----
|
||||||
ENCRYPTION_KEY=your_32_character_encryption_key
|
# Generieren mit: openssl rand -base64 32 | cut -c1-32
|
||||||
|
ENCRYPTION_KEY=change_this_32_character_key_prod
|
||||||
|
|
||||||
# URLs
|
# ----- URLs -----
|
||||||
PASSWORD_RESET_URL=https://yourdomain.com/password-reset
|
# Frontend URL (wo die App läuft)
|
||||||
CORS_ORIGIN=https://yourdomain.com
|
FRONTEND_URL=https://portal.example.com
|
||||||
FRONTEND_URL=https://yourdomain.com
|
# Password Reset Link in E-Mails
|
||||||
|
PASSWORD_RESET_URL=https://portal.example.com/password-reset
|
||||||
|
# API URL für Frontend (muss vom Browser erreichbar sein)
|
||||||
|
VITE_API_URL=https://portal.example.com/api
|
||||||
|
# CORS erlaubte Origins (kommagetrennt für mehrere)
|
||||||
|
CORS_ORIGIN=https://portal.example.com
|
||||||
|
|
||||||
# Mail Provider (brevo, sendgrid, smtp)
|
# ----- Email Configuration -----
|
||||||
MAIL_PROVIDER=brevo
|
# Provider: brevo, sendgrid, smtp
|
||||||
MAIL_FROM_EMAIL=noreply@yourdomain.com
|
MAIL_PROVIDER=smtp
|
||||||
|
MAIL_FROM_EMAIL=noreply@example.com
|
||||||
MAIL_FROM_NAME=Secure Portal
|
MAIL_FROM_NAME=Secure Portal
|
||||||
|
|
||||||
# Brevo (if MAIL_PROVIDER=brevo)
|
# Brevo (wenn MAIL_PROVIDER=brevo)
|
||||||
BREVO_API_KEY=your_brevo_api_key
|
BREVO_API_KEY=your_brevo_api_key_here
|
||||||
|
|
||||||
# SMTP (if MAIL_PROVIDER=smtp)
|
# SendGrid (wenn MAIL_PROVIDER=sendgrid)
|
||||||
|
SENDGRID_API_KEY=your_sendgrid_api_key_here
|
||||||
|
|
||||||
|
# SMTP (wenn MAIL_PROVIDER=smtp)
|
||||||
SMTP_HOST=smtp.example.com
|
SMTP_HOST=smtp.example.com
|
||||||
SMTP_PORT=587
|
SMTP_PORT=587
|
||||||
SMTP_USER=your_smtp_user
|
SMTP_USER=your_smtp_user
|
||||||
SMTP_PASSWORD=your_smtp_password
|
SMTP_PASSWORD=your_smtp_password
|
||||||
SMTP_SECURE=false
|
SMTP_SECURE=false
|
||||||
|
|
||||||
# License
|
# ----- Lizenzierung (optional) -----
|
||||||
LICENSE_SERVER_URL=https://license.example.com
|
LICENSE_SERVER_URL=https://license.unixweb.de
|
||||||
LICENSE_KEY=your_license_key
|
LICENSE_KEY=
|
||||||
|
|
||||||
# Features
|
# ----- Feature Toggles -----
|
||||||
ENABLE_REGISTER=false
|
# Registrierung deaktivieren nach Admin-Erstellung
|
||||||
CLAMAV_ENABLED=true
|
ENABLE_REGISTER=true
|
||||||
|
|
||||||
|
# ----- Docker Registry Version (für docker-compose.registry.yml) -----
|
||||||
|
VERSION=1.0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user