-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.prod.example
More file actions
63 lines (49 loc) · 1.37 KB
/
.env.prod.example
File metadata and controls
63 lines (49 loc) · 1.37 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
# Production Environment Configuration Template
# Copy this file to .env.prod and update all <CHANGE_ME> values
# Usage: docker-compose -f docker-compose.yml up -d
SERVER_ENV=production
APP_PROFILE=production
# Database Configuration (internal Docker network)
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USER=apprun
POSTGRES_PASSWORD=<CHANGE_ME_STRONG_PASSWORD>
POSTGRES_DB=apprun_prod
# Redis Configuration (internal Docker network)
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=<CHANGE_ME_REDIS_PASSWORD>
# JWT Configuration
JWT_SECRET=<CHANGE_ME_JWT_SECRET_MIN_32_CHARS>
JWT_EXPIRY=24h
JWT_ISSUER=apprun
# Server Configuration
SERVER_PORT=8080
SERVER_HOST=0.0.0.0
# External Port Mapping
APP_HTTP_PORT=8080
APP_HTTPS_PORT=8443
# TLS Configuration (required for HTTPS)
SSL_CERT_FILE=/etc/ssl/certs/server.crt
SSL_KEY_FILE=/etc/ssl/private/server.key
SSL_CERT_PATH=./ssl/server.crt
SSL_KEY_PATH=./ssl/server.key
# JWT Configuration
JWT_SECRET=<CHANGE_ME_RANDOM_64_CHAR_STRING>
JWT_EXPIRY=24h
# Encryption Key (must be 32 characters)
ENCRYPTION_KEY=<CHANGE_ME_EXACTLY_32_CHARACTERS>
# Logging
LOG_LEVEL=info
LOG_FORMAT=json
# CORS (comma-separated domains)
CORS_ALLOWED_ORIGINS=https://yourdomain.com
# Health Check
HEALTH_CHECK_PATH=/health
# Database Pool
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=5
DB_CONN_MAX_LIFETIME=5m
# Redis Pool
REDIS_POOL_SIZE=10
REDIS_MIN_IDLE_CONNS=5