-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
77 lines (68 loc) · 2.84 KB
/
Copy path.env.example
File metadata and controls
77 lines (68 loc) · 2.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# ===========================================
# Go REST API Boilerplate - Environment Variables
# ===========================================
#
# Copy this file to .env and set your values
#
# CONFIGURATION PRIORITY (highest to lowest):
# 1. Environment variables (.env file) - THIS FILE
# 2. Environment-specific config (config.production.yaml, etc.)
# 3. Base configuration (config.yaml)
#
# 📋 For ALL available configuration options, see: configs/config.yaml
# 🔧 Most defaults are in config files - only override what you need here
#
# ===========================================
# ===========================================
# Go REST API Version (for Docker Compose)
# ===========================================
VERSION=2.0.0
# ===========================================
# Application version
# ===========================================
APP_VERSION=1.0.0
# ===========================================
# ENVIRONMENT SELECTION
# ===========================================
APP_ENVIRONMENT=development # development | staging | production
# ===========================================
# DATABASE
# ===========================================
DATABASE_PASSWORD=postgres # Required: Database password
# DATABASE_HOST=db # Override database host
# DATABASE_PORT=5432 # Override database port
# DATABASE_USER=postgres # Override database user
# DATABASE_NAME=payment # Override database name
# DATABASE_SSLMODE=disable # Override SSL mode (disable|require|verify-full)
# ===========================================
# COMMON OVERRIDES (optional - uncomment to use)
# ===========================================
# SERVER_PORT=8080 # Override server port
# LOGGING_LEVEL=debug # Override for verbose logging
# ===========================================
# REDIS (for caching and distributed rate limiting)
# ===========================================
# REDIS_ADDR=redis:6379 # Override Redis address
# REDIS_PASSWORD= # Override Redis password
# REDIS_DB=0 # Override Redis database number
# ===========================================
# RATE LIMITING CONFIGURATION
# ===========================================
RATELIMIT_ENABLED=true
RATELIMIT_REQUESTS=100
RATELIMIT_WINDOW=1m
# ===========================================
# CONTAINER NAMES (for docker-compose)
# ===========================================
APP_CONTAINER_NAME=go_api_app
DATABASE_CONTAINER_NAME=go_api_db
REDIS_CONTAINER_NAME=go_api_redis
APP_CONTAINER_NAME_PROD=go_api_app_prod
DATABASE_CONTAINER_NAME_PROD=go_api_db_prod
# ===========================================
# HEALTH CHECK CONFIGURATION (for docker-compose)
# ===========================================
HEALTH_CHECK_INTERVAL=15s
HEALTH_CHECK_TIMEOUT=5s
HEALTH_CHECK_RETRIES=5
HEALTH_CHECK_START_PERIOD=15s