-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdev.env
More file actions
139 lines (115 loc) · 4.5 KB
/
dev.env
File metadata and controls
139 lines (115 loc) · 4.5 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Development Environment Configuration
# =============================================================================
# Redis Configuration (for AppInfo Module)
# =============================================================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_TIMEOUT=5s
CLEAR_CACHE=true
# =============================================================================
# PostgreSQL Configuration (for History Module)
# =============================================================================
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=mydb
POSTGRES_USER=postgres
POSTGRES_PASSWORD=mysecret
# =============================================================================
# Market Sources Configuration (for AppInfo Module)
# =============================================================================
# Official Market Sources base URL - will be used to create initial source in settings
SYNCER_REMOTE=https://appstore-server-prod.bttcdn.com
# =============================================================================
# API Endpoints Configuration (for AppInfo Module)
# Note: These are relative paths that will be combined with market source base URLs
# =============================================================================
# API endpoint paths (relative paths, will be combined with market source base URL)
API_HASH_PATH=/api/v1/appstore/hash
API_DATA_PATH=/api/v1/appstore/info
API_CHART_PATH=/api/v1/applications/{chart_name}/chart
API_DETAIL_PATH=/api/v1/applications/info
# =============================================================================
# Chart Configuration (for AppInfo Module)
# =============================================================================
# Chart root directory for storing downloaded chart packages
CHART_ROOT=./charts
# =============================================================================
# Syncer Configuration (for AppInfo Module)
# =============================================================================
SYNCER_SYNC_INTERVAL=1m
# =============================================================================
# Cache Configuration (for AppInfo Module)
# =============================================================================
CACHE_SYNC_BUFFER_SIZE=1000
CACHE_FORCE_SYNC=false
CACHE_SYNC_TIMEOUT=10s
# =============================================================================
# Module Configuration (for AppInfo Module)
# =============================================================================
MODULE_ENABLE_SYNC=true
MODULE_ENABLE_CACHE=true
MODULE_START_TIMEOUT=30s
# =============================================================================
# History Configuration (for History Module)
# =============================================================================
HISTORY_CLEANUP_INTERVAL_HOURS=24
# =============================================================================
# User Configuration (for AppInfo Module)
# =============================================================================
# Default user list - comma separated user IDs for testing and development
USER_LIST=admin
# User permissions and roles configuration
USER_ADMIN_LIST=admin
USER_DEFAULT_ROLE=user
USER_GUEST_ENABLED=false
# User data configuration
USER_DATA_RETENTION_DAYS=30
USER_MAX_SOURCES_PER_USER=10
USER_CACHE_EXPIRY_HOURS=24
# User session configuration
USER_SESSION_TIMEOUT=3600s
USER_MAX_CONCURRENT_SESSIONS=5
# User authentication configuration (optional)
USER_AUTH_ENABLED=false
USER_AUTH_TIMEOUT=300s
USER_DEFAULT_PERMISSIONS=read,write
# =============================================================================
# Additional Development Configuration
# =============================================================================
# Log Level Configuration
LOG_LEVEL=info
GLOG_V=2
GLOG_LOGTOSTDERR=true
# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
SERVER_READ_TIMEOUT=30s
SERVER_WRITE_TIMEOUT=30s
# API Configuration
API_VERSION=v2
API_BASE_PATH=/api
# Development Flags
GO_ENV=development
# Database Connection Pool Settings
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=5
DB_CONN_MAX_LIFETIME=5m
# Redis Connection Pool Settings
REDIS_MAX_RETRIES=3
REDIS_POOL_SIZE=10
REDIS_MIN_IDLE_CONNS=5
# Monitoring and Health Check
HEALTH_CHECK_INTERVAL=30s
METRICS_ENABLED=true
METRICS_PORT=9090
# Security Configuration
CORS_ENABLED=true
CORS_ORIGINS=*
RATE_LIMIT_ENABLED=false
RATE_LIMIT_RPS=100
# External Services Configuration
EXTERNAL_API_TIMEOUT=30s
EXTERNAL_API_RETRY_COUNT=3
EXTERNAL_API_RETRY_INTERVAL=1s