fix: rename env.example to .env.example for keygen.sh compatibility
The keygen.sh script expects .env.example (with leading dot), not env.example. This fixes the error when running keygen.sh. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
83
.env.example
Normal file
83
.env.example
Normal file
@@ -0,0 +1,83 @@
|
||||
# ===========================================
|
||||
# SafeDocs 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_PASSWORD=change_this_password
|
||||
POSTGRES_DB=secure_portal
|
||||
|
||||
# ----- Redis -----
|
||||
REDIS_PASSWORD=change_this_redis_password
|
||||
|
||||
# ----- JWT Secrets (WICHTIG: ändern!) -----
|
||||
# Generieren mit: openssl rand -base64 32
|
||||
JWT_ACCESS_SECRET=change_this_secret_key_for_production_32_chars
|
||||
JWT_REFRESH_SECRET=change_this_refresh_secret_key_production_32
|
||||
|
||||
# ----- Encryption Key (WICHTIG: exakt 32 Zeichen!) -----
|
||||
# Generieren mit: openssl rand -base64 32 | cut -c1-32
|
||||
ENCRYPTION_KEY=change_this_32_character_key_prod
|
||||
|
||||
# ----- URLs -----
|
||||
# Frontend URL (wo die App läuft)
|
||||
FRONTEND_URL=https://portal.example.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
|
||||
|
||||
# ----- Email Configuration -----
|
||||
# Provider: brevo, sendgrid, smtp
|
||||
MAIL_PROVIDER=smtp
|
||||
MAIL_FROM_EMAIL=noreply@example.com
|
||||
MAIL_FROM_NAME=SafeDocs Portal
|
||||
|
||||
# Brevo (wenn MAIL_PROVIDER=brevo)
|
||||
BREVO_API_KEY=your_brevo_api_key_here
|
||||
|
||||
# SendGrid (wenn MAIL_PROVIDER=sendgrid)
|
||||
SENDGRID_API_KEY=your_sendgrid_api_key_here
|
||||
|
||||
# SMTP (wenn MAIL_PROVIDER=smtp)
|
||||
SMTP_HOST=smtp.example.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=your_smtp_user
|
||||
SMTP_PASSWORD=your_smtp_password
|
||||
SMTP_SECURE=false
|
||||
|
||||
# ----- File Upload -----
|
||||
# Upload-Verzeichnis (WICHTIG: muss /app/uploads sein für Docker!)
|
||||
UPLOAD_DIR=/app/uploads
|
||||
# Maximale Dateigröße
|
||||
MAX_FILE_SIZE=100MB
|
||||
# Erlaubte Dateitypen
|
||||
ALLOWED_FILE_TYPES=pdf,doc,docx,xls,xlsx,png,jpg,jpeg
|
||||
|
||||
# ----- Virus Scanner (ClamAV) -----
|
||||
CLAMAV_HOST=clamav
|
||||
CLAMAV_PORT=3310
|
||||
CLAMAV_ENABLED=true
|
||||
|
||||
# ----- Lizenzierung (optional) -----
|
||||
LICENSE_SERVER_URL=https://license.unixweb.de
|
||||
LICENSE_KEY=
|
||||
|
||||
# ----- Feature Toggles -----
|
||||
# Registrierung deaktivieren nach Admin-Erstellung
|
||||
ENABLE_REGISTER=true
|
||||
|
||||
# ----- Version (automatisch gesetzt bei Docker Build) -----
|
||||
# Wird vom Docker Build als Build-Arg übergeben
|
||||
# APP_VERSION=1.0.18
|
||||
|
||||
# ----- Docker Registry Version (für docker-compose.registry.yml) -----
|
||||
VERSION=1.0.18
|
||||
Reference in New Issue
Block a user