30 lines
1020 B
Bash
30 lines
1020 B
Bash
# La misma base que genesis_authv2. Este servicio NO crea ni modifica el esquema.
|
|
SERVER_PORT=8085
|
|
DB_URL=jdbc:postgresql://localhost:5432/genesis_auth
|
|
DB_USER=genesis
|
|
DB_PASSWORD=replace-with-your-postgresql-password
|
|
|
|
# Clave PUBLICA del auth Java. Nunca copies su clave privada a este servicio.
|
|
JWT_ALGORITHM=RS256
|
|
JWT_PUBLIC_KEY=file:.secrets/public.pem
|
|
JWT_ISSUER=http://localhost:8080
|
|
JWT_AUDIENCE=genesis-api
|
|
JWT_CHECK_SESSION=true
|
|
JWT_MAX_AGE=15m
|
|
|
|
# Solo para transición con auth Node antiguo: JWT_ALGORITHM=HS256, TOKEN_SECRET y JWT_CHECK_SESSION=false.
|
|
TOKEN_SECRET=
|
|
CORS_ALLOWED_ORIGINS=http://localhost:3000
|
|
|
|
# Redis es opcional; sin URL se utiliza el límite local por IP.
|
|
REDIS_URL=
|
|
RATE_LIMIT_MAX=300
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
RATE_LIMIT_MEMORY_MAX_KEYS=10000
|
|
RATE_LIMIT_REDIS_BACKOFF_MS=60000
|
|
RATE_LIMIT_PREFIX=genesis-client:rate
|
|
REQUEST_LOG_ENABLED=true
|
|
|
|
# Solo al usar Docker. localhost dentro del contenedor no es tu ordenador.
|
|
DOCKER_DB_URL=jdbc:postgresql://host.docker.internal:5432/genesis_auth
|