d3f1e95711
Complète le branchement Sentry/GlitchTip côté déploiement pour que le front reçoive son DSN et uploade ses source maps en prod. - infra/prod/Dockerfile (stage frontend-build) : ARG NUXT_PUBLIC_SENTRY_DSN + SENTRY_URL/ORG/PROJECT/AUTH_TOKEN, passés en préfixe inline du RUN npm run generate (pas en ENV → token non persisté ; stage intermédiaire jeté de toute façon). Vides par défaut => module Sentry inerte, pas d'upload. - .gitea/workflows/build-docker.yml : --build-arg depuis les secrets Gitea (INVENTORY_SENTRY_DSN_FRONT, SENTRY_URL, SENTRY_ORG, SENTRY_PROJECT, SENTRY_AUTH_TOKEN). - infra/prod/.env.example : documente SENTRY_DSN (back, runtime). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
511 B
Bash
15 lines
511 B
Bash
# Symfony
|
|
APP_ENV=prod
|
|
APP_DEBUG=0
|
|
APP_SECRET=change-me
|
|
|
|
# Database (use host.docker.internal to reach bare-metal PostgreSQL)
|
|
DATABASE_URL="postgresql://inventory_user:password@host.docker.internal:5432/inventory_prod?serverVersion=16&charset=utf8"
|
|
|
|
# CORS
|
|
CORS_ALLOW_ORIGIN='^https?://inventory\.malio-dev\.fr$'
|
|
|
|
# Sentry / GlitchTip — error tracking backend (projet "inventory-api").
|
|
# Runtime, prod only. Vide/absent => SDK inerte (rien envoyé).
|
|
# SENTRY_DSN=http://<clé>@<host-ou-IP>:<port>/<id-projet>
|