forked from TQZHR/grok2api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
46 lines (38 loc) · 1.14 KB
/
.env.example
File metadata and controls
46 lines (38 loc) · 1.14 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
# Compose will automatically read `.env` from the project root.
# Copy this file to `.env` and adjust values as needed.
# ---- Image / Port ----
GROK2API_PORT=8000
# GROK2API_IMAGE=ghcr.io/tqzhr/grok2api:latest
# ---- Runtime ----
TZ=Asia/Shanghai
LOG_LEVEL=INFO
SERVER_HOST=0.0.0.0
SERVER_PORT=8000
SERVER_WORKERS=1
# ---- Storage (default: local) ----
SERVER_STORAGE_TYPE=local
SERVER_STORAGE_URL=
STORAGE_WAIT_TIMEOUT=60
# ---- Optional profiles (uncomment one) ----
# COMPOSE_PROFILES=redis
# COMPOSE_PROFILES=pgsql
# COMPOSE_PROFILES=mysql
# ---- Redis example ----
# COMPOSE_PROFILES=redis
# SERVER_STORAGE_TYPE=redis
# SERVER_STORAGE_URL=redis://redis:6379/0
# ---- PostgreSQL example ----
# COMPOSE_PROFILES=pgsql
# SERVER_STORAGE_TYPE=pgsql
# PGSQL_DB=grok2api
# PGSQL_USER=grok2api
# PGSQL_PASSWORD=change_me
# SERVER_STORAGE_URL=postgresql+asyncpg://grok2api:change_me@pgsql:5432/grok2api
# ---- MySQL example ----
# COMPOSE_PROFILES=mysql
# SERVER_STORAGE_TYPE=mysql
# MYSQL_DB=grok2api
# MYSQL_USER=grok2api
# MYSQL_PASSWORD=change_me
# MYSQL_ROOT_PASSWORD=change_me
# SERVER_STORAGE_URL=mysql+aiomysql://grok2api:change_me@mysql:3306/grok2api