-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
22 lines (18 loc) · 897 Bytes
/
Copy path.env.example
File metadata and controls
22 lines (18 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copie para .env e ajuste conforme necessário
NODE_ENV=development
PORT=3000
# Segredos JWT — OBRIGATÓRIOS. Gere valores fortes (≥ 32 caracteres) com:
# openssl rand -hex 32
# Em produção a aplicação NÃO inicia com placeholders ou segredos fracos.
JWT_ACCESS_SECRET=REPLACE_WITH_openssl_rand_hex_32
JWT_REFRESH_SECRET=REPLACE_WITH_ANOTHER_openssl_rand_hex_32
ACCESS_TOKEN_TTL=15m
REFRESH_TOKEN_TTL=7d
# CORS — origens permitidas (separadas por vírgula). Vazio: reflete em dev, bloqueia em produção.
# CORS_ORIGIN=https://app.exemplo.com
# Seed opcional de admin (desativado por padrão; nunca habilite em produção com valores fracos)
# SEED_ADMIN=true
# SEED_ADMIN_EMAIL=admin@example.com
# SEED_ADMIN_PASSWORD=troque-esta-senha
# Banco de dados (apenas se usar o caminho com Prisma/PostgreSQL)
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/app?schema=public