eletrotupi / tcc/ ansible/roles/app/templates/env.production.example.j2c8bab449d13fa00dadc0138ef8f83f18104eb593
949 B | 45 lines Raw
1
# Copy to `.env.production`. Loaded by the api container (env_file)
2
# NEVER commit the filled-in file
3

4
NODE_ENV=production
5
PORT=3000
6
LOG_LEVEL=info
7

8
# Database (must match POSTGRES_* in .env)
9
DATABASE_URL="postgres://orbit:change-me@db:5432/orbit_production"
10

11
# Queue / cache
12
VALKEY_HOST=valkey
13
VALKEY_PORT=6379
14

15
# Auth
16
JWT_SECRET="change-me"
17

18
# CORS / public URL
19
FRONTEND_URL="https://usenexo.xyz"
20

21
# Email (Resend)
22
RESEND_API_KEY="xxxxxx"
23
RESEND_FROM="orbit <noreply@example.com>"
24

25
# Object storage (avatars, S3-compatible)
26
S3_REGION=""
27
S3_URL=""
28
S3_ACCESS_KEY=""
29
S3_ACCESS_SECRET=""
30
S3_BUCKET=""
31

32
# Image tag — set by CI, or pin manually
33
GITHUB_REPOSITORY=pedrolucasp/nexo
34
IMAGE_TAG=latest
35

36
# Logging stack (VictoriaLogs + Vector)
37
VICTORIALOGS_TAG=v1.53.0
38
VICTORIALOGS_PORT=9428
39
VICTORIALOGS_RETENTION=14d
40
VICTORIALOGS_MAX_DISK=2GiB
41
VECTOR_TAG=0.59.X-distroless-libc
42

43
# Container log rotation (json-file driver)
44
LOG_MAX_SIZE=10m
45
LOG_MAX_FILE=3