-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
57 lines (46 loc) · 1.61 KB
/
.env.example
File metadata and controls
57 lines (46 loc) · 1.61 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/hasty_barber"
PORT=3000
NODE_ENV=development
# JWT Secret Key
JWT_SECRET=your_jwt_secret_key_here
# Frontend URL (usado para links de email)
FRONTEND_URL=http://localhost:5173
# Backend URL (usado para keep-alive em produção)
# Em produção (Render), use a URL do seu servidor
# Exemplo: https://hasty-barber-api.onrender.com
BACKEND_URL=http://localhost:3000
# Email Configuration
# ==================
# Opção 1 (RECOMENDADO): SendGrid API - usa HTTPS, funciona no Render
# Crie uma API Key em: https://app.sendgrid.com/settings/api_keys
SENDGRID_API_KEY=SG.sua_api_key_aqui
# Opção 2 (FALLBACK): SMTP - pode ser bloqueado no Render no plano gratuito
# Servidor SMTP
# Exemplos:
# Gmail: smtp.gmail.com
# SendGrid: smtp.sendgrid.net
# Outlook: smtp-mail.outlook.com
# Mailgun: smtp.mailgun.org
SMTP_HOST=smtp.gmail.com
# Porta SMTP
# Portas comuns:
# 587 - TLS (recomendado)
# 465 - SSL
# 25 - Sem criptografia (não recomendado)
SMTP_PORT=587
# Usar SSL/TLS
# true para porta 465 (SSL)
# false para porta 587 (TLS/STARTTLS)
SMTP_SECURE=false
# Credenciais de autenticação
# Para Gmail, use App Password ao invés da senha normal
# Como gerar App Password: https://support.google.com/accounts/answer/185833
# Para SendGrid SMTP: user=apikey, pass=sua_api_key
SMTP_USER=seu-email@gmail.com
SMTP_PASS=sua-senha-ou-app-password
# Informações do remetente (usado por ambas as opções acima)
SMTP_FROM_NAME=Hasty Barber
SMTP_FROM_EMAIL=noreply@hastybarber.com
# Proxy (opcional)
# Ative se estiver atrás de um proxy (Heroku, Render, NGINX)
TRUST_PROXY=false