-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.staging.example
More file actions
45 lines (41 loc) · 2.35 KB
/
Copy path.env.staging.example
File metadata and controls
45 lines (41 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Plantilla de entorno STAGING de JobIT (Sprint 20.3 — ADR-0012).
# SOLO placeholders: NINGÚN valor de este archivo es real ni utilizable.
#
# - Los valores reales viven FUERA del repo, en el VPS (propuesta:
# /srv/jobit-staging/.env). Guía: docs/deployment/staging-env.md
# - NO copiar este archivo como `.env` dentro del repo: los `.env` reales
# están ignorados por Git y deben quedarse fuera del árbol del proyecto.
# - Generación de secretos por entorno (nunca reutilizar los de dev/test):
# JWT_ACCESS_SECRET -> openssl rand -hex 48
# POSTGRES_PASSWORD -> openssl rand -base64 32
# ----- PostgreSQL (contenedor jobit-staging-db) -----
# Sin puerto publicado al host: solo accesible por la red interna de Docker.
POSTGRES_DB="jobit_staging"
POSTGRES_USER="jobit_staging"
# Única por entorno; genera una fuerte: openssl rand -base64 32
POSTGRES_PASSWORD="change_me_generate_with_openssl_rand_base64_32"
# ----- API (contenedor jobit-staging-api) -----
NODE_ENV="production"
PORT=4000
# Hostname INTERNO de Docker (jobit-staging-db), nunca localhost en el VPS.
# Debe usar las mismas credenciales de PostgreSQL definidas arriba.
DATABASE_URL="postgresql://jobit_staging:change_me_generate_with_openssl_rand_base64_32@jobit-staging-db:5432/jobit_staging?schema=public"
# Nuevo por entorno, jamás compartido con local/test: openssl rand -hex 48
JWT_ACCESS_SECRET="change_me_generate_with_openssl_rand_hex_48"
# Origen público EXACTO de la web de staging (esquema + host, sin barra final).
# Un mismatch rompe el login por CORS.
CORS_ORIGIN="https://jobit-staging.davlos.es"
# ----- Web (contenedor jobit-staging-web) -----
# PÚBLICA por diseño (no es secreto) y se INLINEA en el build de Next:
# cambiarla exige reconstruir la imagen web, no basta con reiniciarla.
NEXT_PUBLIC_API_BASE_URL="https://api-jobit-staging.davlos.es"
# PORT del web ya lo fija la imagen (3000); se listan por completitud.
# PORT=3000
# HOSTNAME=0.0.0.0
# ----- Opcionales / futuros (ingesta backend-only; fuera del alcance inicial) -----
# Solo si se activa la ingesta real de Jooble en staging (secreto real: NUNCA en el repo).
# JOOBLE_API_KEY=""
# Host regional de Jooble si aplica (default: https://jooble.org/api).
# JOOBLE_API_BASE_URL="https://jooble.org/api"
# Job Board API público de Greenhouse (sin API key).
# GREENHOUSE_API_BASE_URL="https://boards-api.greenhouse.io/v1/boards"