-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
56 lines (45 loc) · 1.26 KB
/
.env.example
File metadata and controls
56 lines (45 loc) · 1.26 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
# ShieldGate Environment Configuration
# Database Configuration
POSTGRES_DB=authdb
POSTGRES_USER=authuser
POSTGRES_PASSWORD=your_secure_password_change_me
POSTGRES_PORT=5432
# Redis Configuration
REDIS_PASSWORD=your_redis_password_change_me
REDIS_PORT=6379
# Server Configuration
SERVER_URL=http://localhost:8080
SERVER_PORT=8080
GIN_MODE=debug
# JWT Configuration (MUST be at least 32 characters)
JWT_SECRET=your-super-secret-jwt-key-minimum-32-characters-long-change-me
# Security Configuration
BCRYPT_COST=12
ACCESS_TOKEN_DURATION=3600
REFRESH_TOKEN_DURATION=2592000
AUTHORIZATION_CODE_DURATION=600
# CORS Configuration
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS
CORS_ALLOWED_HEADERS=Origin,Content-Type,Accept,Authorization,X-Tenant-ID
# Rate Limiting
RATE_LIMIT_REQUESTS_PER_MINUTE=60
# Logging
LOG_LEVEL=debug
LOG_FORMAT=text
# SMTP Email Configuration
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=noreply@shieldgate.com
SMTP_FROM_NAME=ShieldGate
SMTP_USE_TLS=false
# Nginx Configuration (for production)
NGINX_HTTP_PORT=80
NGINX_HTTPS_PORT=443
# Monitoring Configuration (optional)
PROMETHEUS_PORT=9090
GRAFANA_PORT=3000
GRAFANA_USER=admin
GRAFANA_PASSWORD=admin_change_me