-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
63 lines (53 loc) · 2.49 KB
/
.env.example
File metadata and controls
63 lines (53 loc) · 2.49 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
# =============================================================================
# Go Chi Postgres Starter - Environment Variables
# =============================================================================
# Copy this file to .env and update with your values
# cp .env.example .env
# =============================================================================
# Server Configuration
# =============================================================================
PORT=8080
ENVIRONMENT=development
LOG_LEVEL=info
# =============================================================================
# Database Configuration (REQUIRED)
# =============================================================================
# PostgreSQL connection string
# Format: postgresql://user:password@host:port/database?sslmode=disable
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/go_api_starter?sslmode=disable
# =============================================================================
# Authentication & Security
# =============================================================================
# JWT Secret for token signing (REQUIRED in production)
# Generate with: openssl rand -base64 32
# WARNING: Change the default value in production!
JWT_SECRET=dev-secret-change-in-production
# API Access Token (OPTIONAL)
# Used for service-to-service authentication without login
# If not set, only JWT Bearer tokens will work
API_ACCESS_TOKEN=
# =============================================================================
# Rate Limiting
# =============================================================================
# Enable rate limiting (default: true)
RATE_LIMIT_ENABLED=true
# Requests per second (default: 10.0)
RATE_LIMIT_REQUESTS_PER_SEC=10.0
# Burst size (default: 20)
RATE_LIMIT_BURST=20
# =============================================================================
# Queue System (OPTIONAL)
# =============================================================================
# Redis URL for background job processing
# Leave empty to use in-memory queue (development only)
# Format: redis://host:port or redis://user:password@host:port/db
QUEUE_URL=
# =============================================================================
# Testing & Development Tools
# =============================================================================
# Redis URL for queue-monitor and test-queue tools
# Can be the same as QUEUE_URL
REDIS_URL=
# Test database URL (for running tests)
# If not set, tests will use DATABASE_URL
TEST_DATABASE_URL=