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:
@@ -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;'
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user