54 lines
2.0 KiB
Bash
54 lines
2.0 KiB
Bash
# --- Network -------------------------------------------------------------------
|
|
# LAN IP of the Docker host and published port
|
|
BIND_IP=192.168.50.123
|
|
APP_PORT=8085
|
|
|
|
# Comma-separated IPs whose X-Forwarded-* headers are trusted (Nginx Proxy Manager).
|
|
# 127.0.0.1 effectively disables proxy headers until the NPM source IP is known.
|
|
FORWARDED_ALLOW_IPS=127.0.0.1
|
|
|
|
# Public URL(s) of the app; state-changing requests from other origins are rejected
|
|
ALLOWED_ORIGINS=https://clip.webbildhauer.com
|
|
|
|
# --- Sessions and login --------------------------------------------------------
|
|
# Secure cookies are only sent over HTTPS; set false only for local development
|
|
COOKIE_SECURE=true
|
|
SESSION_IDLE_DAYS=30
|
|
SESSION_MAX_DAYS=90
|
|
|
|
LOGIN_MAX_FAILURES_PER_USER=5
|
|
LOGIN_MAX_FAILURES_PER_IP=20
|
|
LOGIN_FAILURE_WINDOW_MINUTES=15
|
|
# Enable only after FORWARDED_ALLOW_IPS is set; otherwise all users share the proxy IP
|
|
LOGIN_IP_LOCKOUT=false
|
|
|
|
# Optional: create the first admin on startup if no users exist. Remove afterwards!
|
|
# Preferred instead: docker exec -it -u app lan-clipboard lc-admin create-admin
|
|
#INITIAL_ADMIN_USERNAME=
|
|
#INITIAL_ADMIN_PASSWORD=
|
|
|
|
# --- Limits --------------------------------------------------------------------
|
|
# Maximum characters per clip and maximum API request size in bytes
|
|
CLIP_MAX_CHARS=200000
|
|
MAX_REQUEST_BYTES=1048576
|
|
|
|
# File uploads (bytes): maximum per file, storage per user, and the free disk space
|
|
# that must remain on the server (uploads are refused below it)
|
|
FILE_MAX_BYTES=104857600
|
|
FILE_QUOTA_BYTES=1073741824
|
|
FILE_MIN_FREE_BYTES=2147483648
|
|
|
|
# --- Backup ----------------------------------------------------------------------
|
|
# Daily consistent database snapshot to data/backups (hour in local time, see TZ)
|
|
BACKUP_ENABLED=true
|
|
BACKUP_HOUR=3
|
|
BACKUP_KEEP_DAILY=7
|
|
BACKUP_KEEP_WEEKLY=4
|
|
|
|
# Swagger UI under /api/docs; keep disabled on a publicly reachable instance
|
|
ENABLE_API_DOCS=false
|
|
|
|
# --- Misc ----------------------------------------------------------------------
|
|
LOG_LEVEL=info
|
|
TZ=Europe/Berlin
|