-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend.env
More file actions
29 lines (24 loc) · 746 Bytes
/
backend.env
File metadata and controls
29 lines (24 loc) · 746 Bytes
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
# Django
DJANGO_SECRET_KEY=change_me_super_secret
DJANGO_DEBUG=1
ALLOWED_HOSTS=localhost,127.0.0.1
# Si servís por dominio/HTTPS, agregalo acá:
# CSRF_TRUSTED_ORIGINS=https://api.tudominio.com,https://tudominio.com
# Zona horaria
TIME_ZONE=America/Argentina/Cordoba
# DB (debe coincidir con docker-compose -> POSTGRES_USER/POSTGRES_PASSWORD)
DB_NAME=walletdb
DB_USER=zen
DB_PASS=pass
DB_HOST=db
DB_PORT=5432
# JWT lifetimes
ACCESS_MIN=45
REFRESH_DAYS=14
# CORS (dos modos: permitir todo o lista blanca)
CORS_ALLOW_ALL_ORIGINS=1
# Si preferís lista blanca, poné CORS_ALLOW_ALL_ORIGINS=0 y define:
# CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
# Redis (si lo usás en services/prices)
REDIS_HOST=redis
REDIS_PORT=6379