Adds a self-service editor at admin.larpaso.de so texts, images, links, Impressum/Datenschutz, fonts, font sizes and colors can be changed without a developer. All homepage/legal content moves into content/site.json and a new content/theme.json drives every CSS color/font/size token; the Astro pages read from these at build time. The admin/ service (Node/Express) provides bcrypt+session login with rate limiting, a schema-driven form UI (including a hex/RGB/alpha color picker), image upload, and a publish action that runs the Astro build and republishes into a volume shared with the nginx website container - so edits go live without redeploying that container. See DEPLOYMENT_ADMIN.md for the server-side setup steps.
19 lines
620 B
Text
19 lines
620 B
Text
# Kopieren nach admin/.env (lokal) bzw. als echte Umgebungsvariablen auf dem Server setzen.
|
|
# NIEMALS mit echten Werten committen.
|
|
|
|
PORT=4321
|
|
NODE_ENV=production
|
|
|
|
# Login
|
|
ADMIN_USERNAME=pascal
|
|
# Erzeugen mit: node admin/hash-password.js "dein-passwort"
|
|
ADMIN_PASSWORD_HASH=
|
|
# Zufälligen Wert erzeugen z. B. mit: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
|
SESSION_SECRET=
|
|
|
|
# Pfade (im Container i.d.R. nicht ändern, siehe DEPLOYMENT_ADMIN.md)
|
|
PROJECT_DIR=/app
|
|
CONTENT_PATH=/app/content/site.json
|
|
THEME_PATH=/app/content/theme.json
|
|
UPLOAD_DIR=/app/public/uploads
|
|
DIST_TARGET_DIR=/site-dist
|