Добавлены настройки темы по умолчанию

This commit is contained in:
Ilia Miheev
2026-06-21 00:36:31 +03:00
parent c9347b8d20
commit 810bf469f9
10 changed files with 51 additions and 29 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ BANNER_BRAND="${BANNER_BRAND:-iQR}"
BANNER_SLOGAN="${BANNER_SLOGAN:-— qr-код без излишеств}"
BANNER_URL="${BANNER_URL:-https://github.com/IliaMiheev/iQR}"
ACCENT_COLOR="${ACCENT_COLOR:-#ff4500}"
DEFAULT_THEME="${DEFAULT_THEME:-dark}"
cat > /usr/share/nginx/html/config.json <<EOF
{
@@ -13,7 +14,8 @@ cat > /usr/share/nginx/html/config.json <<EOF
"bannerBrand": "$(printf '%s' "$BANNER_BRAND" | sed 's/"/\\"/g')",
"bannerSlogan": "$(printf '%s' "$BANNER_SLOGAN" | sed 's/"/\\"/g')",
"bannerUrl": "$(printf '%s' "$BANNER_URL" | sed 's/"/\\"/g')",
"accentColor": "$(printf '%s' "$ACCENT_COLOR" | sed 's/"/\\"/g')"
"accentColor": "$(printf '%s' "$ACCENT_COLOR" | sed 's/"/\\"/g')",
"defaultTheme": "$(printf '%s' "$DEFAULT_THEME" | sed 's/"/\\"/g')"
}
EOF