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.
10 lines
432 B
Bash
10 lines
432 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# /usr/share/nginx/html is a shared volume with the admin container so
|
|
# published rebuilds show up without redeploying this container. On a fresh
|
|
# volume it's empty, so seed it once from the image's baked-in build.
|
|
if [ -z "$(ls -A /usr/share/nginx/html 2>/dev/null)" ]; then
|
|
echo "Seeding /usr/share/nginx/html from baked-in default build..."
|
|
cp -r /usr/share/nginx/html-default/. /usr/share/nginx/html/
|
|
fi
|