Move template assets to .env-driven generation.

Site metadata, images, favicons, and YouTube settings are now configured via .env and rendered from HTML/manifest templates at dev or container startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 15:45:04 +02:00
parent 833e248518
commit 3a843c53f3
13 changed files with 148 additions and 82 deletions
+5 -7
View File
@@ -18,21 +18,19 @@ services:
ports:
- "${FRONTEND_PORT:-8080}:80"
environment:
POST_VIDEO_REDIRECT_URL: ${POST_VIDEO_REDIRECT_URL:-https://www.youtube.com/watch?v=kujXXtoHUbc}
env_file:
- .env
command: >
sh -c "
apk add --no-cache git &&
apk add --no-cache git gettext &&
rm -rf /app &&
git clone https://gitea.expert-it.agency-ai.dev/tomasz-syn-grzegorza/site-slavic-pulse-com.git /app &&
cp /app/index.html /usr/share/nginx/html/index.html &&
cp /app/site.webmanifest /usr/share/nginx/html/site.webmanifest &&
chmod +x /app/generate-from-env.sh &&
TEMPLATE_DIR=/app /app/generate-from-env.sh /usr/share/nginx/html &&
cp -r /app/assets /usr/share/nginx/html/assets &&
rm /etc/nginx/conf.d/default.conf &&
cp /app/default.conf /etc/nginx/conf.d/default.conf &&
chmod +x /app/generate-config.sh &&
POST_VIDEO_REDIRECT_URL=\"$${POST_VIDEO_REDIRECT_URL}\" /app/generate-config.sh /usr/share/nginx/html/config.js &&
nginx -g 'daemon off;'
"