-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.env.example
More file actions
61 lines (55 loc) · 2.83 KB
/
.env.example
File metadata and controls
61 lines (55 loc) · 2.83 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ISMS Builder – Beispielkonfiguration
# Kopiere diese Datei als .env und passe die Werte an:
# cp .env.example .env
# ── Pflichtfeld ───────────────────────────────────────────────────────────────
# Mindestens 32 zufällige Zeichen: openssl rand -hex 32
JWT_SECRET=CHANGE_ME_USE_OPENSSL_RAND_HEX_32
# ── Server ────────────────────────────────────────────────────────────────────
JWT_EXPIRES_IN=8h
PORT=3000
DEV_HEADER_AUTH=false # Nie auf true in Produktion!
# ── Storage-Backend ───────────────────────────────────────────────────────────
STORAGE_BACKEND=sqlite # sqlite (empfohlen) | json (Entwicklung) | mariadb | postgres
# ── MariaDB / MySQL (nur wenn STORAGE_BACKEND=mariadb) ────────────────────────
# Voraussetzung: npm install mysql2
# Datenbank anlegen:
# CREATE DATABASE isms_builder CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
# CREATE USER 'isms'@'localhost' IDENTIFIED BY 'yourpass';
# GRANT ALL PRIVILEGES ON isms_builder.* TO 'isms'@'localhost';
# Migration: node tools/migrate-json-to-mariadb.js
#
# DB_HOST=localhost
# DB_PORT=3306
# DB_USER=isms
# DB_PASS=yourpass
# DB_NAME=isms_builder
# DB_SSL=false # true für TLS-verschlüsselte Verbindung
# ── SSL/HTTPS (optional) ──────────────────────────────────────────────────────
# SSL_CERT_FILE=ssl/cert.pem
# SSL_KEY_FILE=ssl/key.pem
# ── E-Mail / SMTP (optional) ──────────────────────────────────────────────────
# Ohne SMTP_HOST sind alle E-Mail-Benachrichtigungen deaktiviert.
# Benachrichtigungen selbst werden in Admin → Organisation → E-Mail konfiguriert.
#
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_SECURE=false # true für Port 465 (TLS), false für STARTTLS
# SMTP_USER=isms@example.com
# SMTP_PASS=your-smtp-password
# SMTP_FROM=ISMS Builder <isms@example.com>
#
# Beispiel für Gmail (App-Passwort erforderlich):
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your@gmail.com
# SMTP_PASS=abcd-efgh-ijkl-mnop
# SMTP_FROM=ISMS Builder <your@gmail.com>
#
# Beispiel für Office 365:
# SMTP_HOST=smtp.office365.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=isms@yourcompany.com
# SMTP_PASS=your-password
# SMTP_FROM=ISMS Builder <isms@yourcompany.com>