staging: artefactos de despliegue dockerizado + neutralizacion de datos
- .meteorignore excluye scripts/ del bundle Meteor (mongosh usa global db); docker-compose.staging.yml (mongo7/redis/notif-shadow/mailhog); scripts/neutralize-contacts.mongo.js (contactos + cola de correo); secrets/*.staging.*.example
This commit is contained in:
parent
1ef0012af9
commit
2e298f9ee5
5 changed files with 346 additions and 0 deletions
40
secrets/notifications.staging.env.example
Normal file
40
secrets/notifications.staging.env.example
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# tcef-notifications en STAGING (testfuegos.comunes.org). Copia a notifications.staging.env.
|
||||
# Referencia completa: ../../tcef-notifications/.env.example
|
||||
#
|
||||
# CERO ENVÍOS A USUARIOS REALES:
|
||||
# MODE=shadow → calcula decisiones y las loguea, NO envía (ver src/mode.ts decideSend)
|
||||
# MATCHER_MODE=shadow→ el matcher computa candidatos a notificar, NO inserta/envía
|
||||
# sin FCM_SERVICE_ACCOUNT → no se construye el cliente FCM (imposible enviar push)
|
||||
# MAIL_URL=smtp://mailhog:1025 → cualquier correo se captura en Mailhog, nunca sale
|
||||
# telegram FUERA de OWNED_CHANNELS → los bots reales ES/EN ni se tocan
|
||||
|
||||
MODE=shadow
|
||||
KILL_SWITCH=0
|
||||
OWNED_CHANNELS=fcm,email
|
||||
MATCHER_MODE=shadow
|
||||
LOG_LEVEL=debug
|
||||
|
||||
# Infra del compose de staging (nombres de servicio de docker-compose.staging.yml)
|
||||
MONGO_URL=mongodb://mongo:27017/fuegos?replicaSet=rs0
|
||||
MONGO_DB=fuegos
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
POLL_INTERVAL_MS=10000
|
||||
POLL_BATCH_SIZE=500
|
||||
|
||||
# Captura de correo (no un SMTP real). En shadow no se envía, pero se deja apuntando a Mailhog
|
||||
# como red de seguridad si alguien sube el MODE por error.
|
||||
MAIL_URL=smtp://mailhog:1025
|
||||
MAIL_FROM=Todos contra el Fuego (STAGING) <no-reply@testfuegos.comunes.org>
|
||||
|
||||
# NO configurar en staging (dejar comentado): sin service account no hay push posible.
|
||||
# FCM_SERVICE_ACCOUNT=/run/secrets/firebase-service-account.json
|
||||
# FCM_PROJECT_ID=angular-cosmos-108908
|
||||
|
||||
# OBLIGATORIO si MATCHER_MODE != off: el matcher lo exige para sellar notification.sealed
|
||||
# (createMatchContext falla al arrancar sin él, aun en shadow). = ironPassword de los settings.
|
||||
IRON_PASSWORD=IRON_PASSWORD_DE_LOS_SETTINGS
|
||||
|
||||
ROOT_URL=https://testfuegos.comunes.org/
|
||||
SERVICE_NAME=tcef-notifications-staging
|
||||
Loading…
Add table
Add a link
Reference in a new issue