-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
35 lines (27 loc) · 1.55 KB
/
.env.example
File metadata and controls
35 lines (27 loc) · 1.55 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
# ─── App ─────────────────────────────────────────────────────────────
NODE_ENV=production
PORT=3012
# Public base URL (used for share URLs)
NEXT_PUBLIC_BASE_URL=https://paste.msk-scripts.de
# ─── Database (MariaDB) ─────────────────────────────────────────────
DB_HOST=localhost
DB_PORT=3306
DB_USER=msk_paste
DB_PASSWORD=change_me_strong_password
DB_NAME=msk_paste
# ─── Security ────────────────────────────────────────────────────────
# HMAC secret for IP hashing (GDPR-compliant rate limiting).
# Generate with: openssl rand -hex 32
IP_HASH_SECRET=change_me_with_openssl_rand_hex_32
# ─── Limits ──────────────────────────────────────────────────────────
# IMPORTANT: never put inline `# comments` next to a value — systemd's
# EnvironmentFile keeps them as part of the variable, which breaks parsing.
# Max paste creates per IP hash per hour
RATE_LIMIT_CREATE_PER_HOUR=10
# Max paste size in bytes (1 MB = 1048576)
MAX_PASTE_SIZE_BYTES=1048576
# Random paste ID length (default 8 → ~3.5 × 10^13 combinations)
PASTE_ID_LENGTH=8
# Custom paste ID length range
PASTE_ID_MIN_CUSTOM=4
PASTE_ID_MAX_CUSTOM=32