-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (37 loc) · 2.38 KB
/
.env.example
File metadata and controls
44 lines (37 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ═══════════════════════════════════════════════════════════════
# PDF-Freigabetool – Konfiguration
# Kopieren: cp .env.example .env
# ═══════════════════════════════════════════════════════════════
# ─── Umgebung ────────────────────────────────────────────────
# WICHTIG: In Produktion auf 'production' setzen!
# → Unterdrückt Debug-Ausgaben und Stack Traces
# → Aktiviert statisches Datei-Caching
NODE_ENV=production
PORT=3000
# ─── Session-Secret ──────────────────────────────────────────
# WICHTIG: Muss ein langer, zufälliger String sein!
# Generieren mit: openssl rand -hex 48
# Das setup.sh setzt dies automatisch.
SESSION_SECRET=BITTE-AENDERN
# ─── Basis-URL (optional) ───────────────────────────────────
# Nur setzen wenn nicht über die Web-Oberfläche konfiguriert.
# Bei Reverse Proxy z.B.: https://freigabe.meinefirma.de
# BASE_URL=https://freigabe.meinefirma.de
# ─── Datenbank ───────────────────────────────────────────────
DB_PATH=./data/database.sqlite
# ─── SMTP (Mail-Versand) ────────────────────────────────────
# Kann auch in der Web-Oberfläche unter Einstellungen
# konfiguriert werden (hat Vorrang vor diesen Werten).
SMTP_HOST=localhost
SMTP_PORT=25
SMTP_USER=
SMTP_PASS=
SMTP_FROM=freigabe@localhost
SMTP_FROM_NAME=PDF-Freigabe
# ─── Admin (Erstinstallation) ───────────────────────────────
# Wird nur bei erster DB-Erstellung verwendet.
# Danach über die Web-Oberfläche verwalten.
ADMIN_EMAIL=admin@example.com
ADMIN_PASS=admin123
# ─── Uploads ────────────────────────────────────────────────
UPLOAD_DIR=./uploads