Harden production security: Dockerfile build, nginx whitelist, and CSP.

Replace Dokploy runtime git clone with Dockerfile build to keep tokens out of the container, add nginx security headers and path whitelist, and scrub templates from the running image after HTML generation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
tomasz-syn-grzegorzaandCursor committed 2026-06-27 16:58:27 +02:00
1 parent e22c26798b
commit f4775366ef
9 files changed
+116 -57

No files matched your search

+4 -7
View File
@@ -1,12 +1,9 @@
# Slavic Pulse — Environment Configuration (Dokploy)
# Slavic Pulse — Environment Configuration (Dokploy / produkcja)
# Copy to .env before deploy if needed.
# Never commit .env with real credentials to version control.
# --- Gitea (opcjonalnie — tylko gdy repo jest prywatne) ---
# Domyślnie clone używa publicznego URL bez auth.
# Dokploy Gitea Provider (OAuth) NIE autoryzuje git clone wewnątrz kontenera —
# nadal potrzebujesz publicznego repo LUB tokena poniżej.
# GITEA_REPO_URL=https://oauth2:TWÓJ_TOKEN@gitea.expert-it.agency-ai.dev/tomasz-syn-grzegorza/site-slavic-pulse-com.git
#
# Tylko zmienne runtime strony — bez GITEA_REPO_URL, bez FRONTEND_PORT.
# Dokploy buduje obraz z Dockerfile; repo klonowane jest na hoście przez Dokploy.
# --- Strona (meta, SEO, PWA) ---
SITE_TITLE="Slavic Pulse"