-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
25 lines (21 loc) · 924 Bytes
/
Copy path.env.example
File metadata and controls
25 lines (21 loc) · 924 Bytes
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
# Copy this file to .env and replace every placeholder before running.
PORT=3000
TZ=Asia/Shanghai
DEBUG=false
OPENAPI_MANAGER_IMAGE=heing8848/openapi-manager:latest
# Required. Generate a long random value, for example with:
# openssl rand -hex 32
SESSION_SECRET=<generate-a-long-random-session-secret>
# MySQL settings used by docker-compose.yml.
MYSQL_ROOT_PASSWORD=<generate-a-strong-root-password>
MYSQL_USER=oneapi
MYSQL_PASSWORD=<generate-a-strong-database-password>
MYSQL_DATABASE=one-api
MYSQL_PORT=3306
SQL_DSN=oneapi:<same-as-MYSQL_PASSWORD>@tcp(db:3306)/one-api
# Optional. Only set this in your own .env if your server must use a proxy.
# HTTPS_PROXY=http://127.0.0.1:7890
# Optional Cloudflare Edge Proxy settings.
# Configure these as Cloudflare Worker secrets, not as public repository values.
ALFRED_API_HOST=https://<your-alfredapi-domain>
WORKER_ADMIN_TOKEN=<create-an-admin-access-token-in-alfredapi>