-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (31 loc) · 2.62 KB
/
.env.example
File metadata and controls
39 lines (31 loc) · 2.62 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
# ─── LLM ────────────────────────────────────────────────────────────────────
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-4o-mini
OPENAI_MAX_TOKENS=8192
# ─── Django ──────────────────────────────────────────────────────────────────
# Gere com: python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
SECRET_KEY=troque-isso-em-producao
# Hosts permitidos pelo Django (separe por vírgula)
# Ex: ALLOWED_HOSTS=meuservidor.com,www.meuservidor.com
ALLOWED_HOSTS=*
# ─── Banco de dados ───────────────────────────────────────────────────────────
POSTGRES_DB=concurseai
POSTGRES_USER=concurseai
POSTGRES_PASSWORD=troque-esta-senha-em-producao
# ─── CORS (origens permitidas para o frontend) ────────────────────────────────
# Ex: CORS_ALLOWED_ORIGINS=https://meuservidor.com,https://www.meuservidor.com
CORS_ALLOWED_ORIGINS=http://localhost:3000
# ─── CSRF (Django 4.0+ exige para acessos externos) ──────────────────────────
# Use https:// mesmo com IP — Django 4.0+ rejeita http:// em CSRF_TRUSTED_ORIGINS
# Ex: CSRF_TRUSTED_ORIGINS=https://5.78.201.3:8000,https://meuservidor.com
CSRF_TRUSTED_ORIGINS=https://localhost:8000
# ─── Frontend ─────────────────────────────────────────────────────────────────
# URL pública do backend acessível pelo navegador do usuário
# Em produção: http://meuservidor.com:8000 ou https://api.meuservidor.com
NEXT_PUBLIC_API_URL=http://localhost:8000
# ─── SSL (produção) ───────────────────────────────────────────────────────────
# True apenas se Django termina SSL diretamente (sem reverse proxy)
# Se usar nginx/Caddy/Traefik na frente, mantenha False
SECURE_SSL_REDIRECT=False
# ─── Fase 3 (opcional) ────────────────────────────────────────────────────────
# THESYS_API_KEY=