-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (33 loc) · 1000 Bytes
/
.env.example
File metadata and controls
40 lines (33 loc) · 1000 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
30
31
32
33
34
35
36
37
38
39
40
# Application
NODE_ENV=development
APP_NAME=admin-rbac-system
# Server (runtime uses PORT)
PORT=3000
# Database
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE=
DB_SSL=false
# Optional: used by Drizzle tooling. If set, overrides DB_* for migrations.
# Example: postgresql://user:password@localhost:5432/admin_limify
DATABASE_URL=
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
# Auth - JWT RS256 (PRIVATE_KEY assina, PUBLIC_KEY verifica)
# Gerar par de chaves:
# openssl genrsa -out private.pem 2048
# openssl rsa -in private.pem -pubout -out public.pem
# Para .env: cole o conteúdo PEM em uma única linha, substituindo quebras por \n
# OBRIGATÓRIO em produção.
PRIVATE_KEY=
PUBLIC_KEY=
# CORS (obrigatório em produção: URLs separadas por vírgula)
# Ex: ALLOWED_ORIGINS=https://admin.example.com,https://app.example.com
ALLOWED_ORIGINS=
# Resend (opcional)
RESEND_API_KEY=
RESEND_FROM_EMAIL=
DISABLE_REDIS=true # Set to true when Redis is not available locally