-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (38 loc) · 1.27 KB
/
.env.example
File metadata and controls
40 lines (38 loc) · 1.27 KB
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
NODE_ENV=development
PORT=4000
DB_PATH=./data/noctification.db
JWT_SECRET=change-this-secret
JWT_EXPIRES_HOURS=8
CORS_ORIGIN=http://localhost:5173
COOKIE_SECURE=false
ALLOW_INSECURE_FIXED_ADMIN=true
ADMIN_LOGIN=admin
ADMIN_PASSWORD=admin
ADMIN_NAME=Administrador
ENABLE_REMINDER_SCHEDULER=true
ENABLE_APR_MODULE=false
ENABLE_KML_POSTE_MODULE=true
WEB_PUSH_SUBJECT=mailto:admin@noctification.local
WEB_PUSH_VAPID_PUBLIC_KEY=
WEB_PUSH_VAPID_PRIVATE_KEY=
# Em desenvolvimento local o admin fixo inseguro pode continuar habilitado.
# Fora de dev, troque as credenciais acima e use:
# ALLOW_INSECURE_FIXED_ADMIN=false
# Em producao com HTTPS, prefira:
# COOKIE_SECURE=true
# Em deploy HTTP controlado na rede local, ajuste:
# COOKIE_SECURE=false
# Em producao, prefira liberar a feature de lembretes por etapas:
# 1. aplique migrations
# 2. valide CRUD e paineis com:
# ENABLE_REMINDER_SCHEDULER=false
# 3. depois habilite:
# ENABLE_REMINDER_SCHEDULER=true
#
# Politica atual de timezone dos lembretes:
# o backend opera com timezone fixa `America/Bahia`
#
# Para Web Push na rede local:
# - gere as chaves com `npm run generate-vapid --workspace @noctification/api`
# - preencha WEB_PUSH_VAPID_PUBLIC_KEY e WEB_PUSH_VAPID_PRIVATE_KEY
# - mantenha o frontend servido por HTTPS em hostname local estavel