-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.local.example
More file actions
56 lines (48 loc) · 1.31 KB
/
env.local.example
File metadata and controls
56 lines (48 loc) · 1.31 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
# ===========================================
# Local Development Environment Variables
# ===========================================
# Usage:
# 1. Copy this file: cp env.local.example .env.local
# 2. Run: source .env.local && go run ./cmd/doit
# Or: make dev-run (sources automatically)
# ===========================================
# Database (localhost - Docker exposes port 5432)
DB_HOST=localhost
DB_PORT=5432
DB_USER=doit
DB_PASSWORD=doit123
DB_NAME=doit
DB_DISABLE_TLS=true
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=25
DB_CONN_MAX_LIFETIME=300
# Redis (localhost - Docker exposes port 6379)
REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
# Server
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
SERVER_READ_TIMEOUT=10
SERVER_WRITE_TIMEOUT=10
SERVER_IDLE_TIMEOUT=120
SERVER_SHUTDOWN_TIMEOUT=25
SERVER_DEBUG_PORT=6060
# JWT
JWT_SECRET=dev-secret-key-change-in-production
JWT_REFRESH_SECRET=dev-refresh-secret-change-in-production
JWT_ACCESS_TOKEN_EXP=900
JWT_REFRESH_TOKEN_EXP=604800
# Application
APP_ENVIRONMENT=development
APP_VERSION=dev
APP_LOG_LEVEL=debug
# Tracing (localhost - Docker exposes port 4317)
TRACING_ENABLED=true
TRACING_OTLP_ENDPOINT=localhost:4317
TRACING_SAMPLE_RATE=1.0
# Security
SECURITY_ENABLE_CORS=true
SECURITY_ALLOWED_ORIGINS=*
SECURITY_RATE_LIMIT_ENABLED=true
SECURITY_MAX_REQUESTS_PER_MIN=100