-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.example
More file actions
58 lines (44 loc) · 1.47 KB
/
.env.example
File metadata and controls
58 lines (44 loc) · 1.47 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
# GameAP Environment Configuration
# Copy this file to .env and update the values
# Security - REQUIRED IN PRODUCTION
# Generate strong random values for these keys
ENCRYPTION_KEY=change-me-to-random-32-char-key
AUTH_SECRET=change-me-to-random-32-char-secret
# Server Configuration
HTTP_HOST=0.0.0.0
HTTP_PORT=8025
# Database Configuration
# Options: mysql, postgres, sqlite, inmemory
DATABASE_DRIVER=postgres
# PostgreSQL example
DATABASE_URL=postgres://gameap:gameap@postgres:5432/gameap?sslmode=disable
POSTGRES_PASSWORD=gameap
# MySQL example (comment out PostgreSQL and uncomment these)
# DATABASE_URL=gameap:gameap@tcp(mysql:3306)/gameap?parseTime=true
# MYSQL_PASSWORD=gameap
# MYSQL_ROOT_PASSWORD=rootpassword
# SQLite example (comment out PostgreSQL and uncomment this)
# DATABASE_URL=file:/var/lib/gameap/db.sqlite?_busy_timeout=5000&_journal_mode=WAL&cache=shared
# Cache Configuration
CACHE_DRIVER=redis
CACHE_REDIS_ADDR=redis:6379
# For in-memory cache (no Redis needed):
# CACHE_DRIVER=memory
# File Storage
FILES_DRIVER=local
FILES_LOCAL_BASE_PATH=/var/lib/gameap/files
# S3 Storage (uncomment to use S3)
# FILES_DRIVER=s3
# FILES_S3_ENDPOINT=https://s3.amazonaws.com
# FILES_S3_ACCESS_KEY_ID=your-access-key
# FILES_S3_SECRET_ACCESS_KEY=your-secret-key
# FILES_S3_BUCKET=gameap-files
# FILES_S3_REGION=us-east-1
# Logging
LOGGER_LEVEL=info
# Authentication
AUTH_SERVICE=paseto
# RBAC
RBAC_CACHE_TTL=30s
# Build metadata (for docker-compose build)
BUILD_DATE=2025-01-01T00:00:00Z