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:
@@ -3,11 +3,22 @@
|
||||
# Never commit .env with real credentials to version control.
|
||||
|
||||
# --- Frontend Server ---
|
||||
# Port publikowany na hoście. W kontenerze nginx zawsze nasłuchuje na 80.
|
||||
# Mapowanie w docker-compose.yml: ${FRONTEND_PORT}:80
|
||||
# Dokploy/Traefik dodatkowo routuje po FQDN do wewnętrznego portu 80 kontenera.
|
||||
FRONTEND_PORT=8082
|
||||
|
||||
# --- Po zakończeniu intro wideo ---
|
||||
# Adres docelowy przekierowania po zakończeniu odtwarzania filmu.
|
||||
# --- Strona (meta, SEO, PWA) ---
|
||||
SITE_TITLE="Slavic Pulse"
|
||||
SITE_SHORT_NAME="Slavic Pulse"
|
||||
SITE_BASE_URL=https://slavic-pulse.com
|
||||
SITE_DESCRIPTION="Lokalne modele LLM, własny serwer AI (Proxmox, TrueNAS, Ubuntu), RAG, Ollama, Open WebUI, bezpieczny self-hosting i wdrożenia biznesowe lokalnej AI."
|
||||
SITE_OG_IMAGE_ALT="Slavic Pulse"
|
||||
THEME_COLOR=#000000
|
||||
|
||||
# --- Obrazy i ikony (ścieżki względem roota strony) ---
|
||||
BG_IMAGE=/assets/imgs/www-bg-slavic-pulse-com-001.jpg
|
||||
FAVICON_48=/assets/imgs/favico/48x48.png
|
||||
FAVICON_180=/assets/imgs/favico/180x180.png
|
||||
FAVICON_512=/assets/imgs/favico/512x512.png
|
||||
|
||||
# --- YouTube ---
|
||||
VIDEO_ID=kujXXtoHUbc
|
||||
POST_VIDEO_REDIRECT_URL=https://www.youtube.com/watch?v=kujXXtoHUbc
|
||||
|
||||
@@ -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