-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production.example
More file actions
71 lines (58 loc) · 3.32 KB
/
.env.production.example
File metadata and controls
71 lines (58 loc) · 3.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# =============================================================================
# .env.production.example — Variables de entorno para producción
# Copiar a .env.production y completar con valores reales.
# NUNCA commitear .env.production al repositorio.
# =============================================================================
# -----------------------------------------------------------------------------
# Client Gateway
# -----------------------------------------------------------------------------
CLIENT_GATEWAY_PORT=3000
# -----------------------------------------------------------------------------
# JWT
# -----------------------------------------------------------------------------
# Generar con: openssl rand -hex 32
JWT_SECRET=change_me_use_openssl_rand_hex_32
# -----------------------------------------------------------------------------
# NATS
# -----------------------------------------------------------------------------
NATS_SERVERS=nats://nats-server:4222
# -----------------------------------------------------------------------------
# MongoDB (auth-ms)
# Formato: mongodb://USER:PASS@HOST:PORT/DB?authSource=admin&directConnection=true
# Para Atlas: mongodb+srv://USER:PASS@cluster.mongodb.net/DB
# -----------------------------------------------------------------------------
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=change_me_strong_password
MONGO_INITDB_DATABASE=auth_db
USERS_MS_DATABASE_URL=mongodb://root:change_me_strong_password@db-mongo-users:27017/auth_db?authSource=admin&directConnection=true
# -----------------------------------------------------------------------------
# PostgreSQL (orders-ms)
# -----------------------------------------------------------------------------
POSTGRES_USER=postgres
POSTGRES_PASSWORD=change_me_strong_password
POSTGRES_DB=orders_db
ORDERS_MS_DATABASE_URL=postgresql://postgres:change_me_strong_password@db-pg-orders:5432/orders_db?schema=public
# -----------------------------------------------------------------------------
# SQLite (products-ms) — ruta interna del contenedor, no cambiar
# -----------------------------------------------------------------------------
PRODUCTS_MS_DATABASE_URL=file:/usr/src/app/data/prod.db
# -----------------------------------------------------------------------------
# PayPal
# Crear cuenta business en https://developer.paypal.com/dashboard/accounts/
# En producción usar: https://api-m.paypal.com
# En sandbox usar: https://api-m.sandbox.paypal.com
# -----------------------------------------------------------------------------
PAYPAL_BASE_URL=https://api-m.paypal.com
PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_SECRET=your_paypal_secret
# URL pública del payments-ms (necesita HTTPS para el webhook de PayPal)
PAYMENTS_MS_BASE_URL=https://yourdomain.com/api
# URLs de redirección post-pago (apuntan al frontend)
FRONTEND_RETURN_URL=http://localhost/payment/success
FRONTEND_CANCEL_URL=http://localhost/payment/cancel
# -----------------------------------------------------------------------------
# Frontend (variables de BUILD TIME — se embeben en el bundle de Vite)
# Si cambian estas variables hay que rebuildar la imagen del frontend.
# -----------------------------------------------------------------------------
# URL pública del payments-ms accesible desde el browser (puerto 3003)
VITE_PAYMENTS_URL=https://localhost:3003