-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.env.example
More file actions
43 lines (35 loc) · 1.68 KB
/
Copy path.env.example
File metadata and controls
43 lines (35 loc) · 1.68 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
# ============================================================
# AirGate Core 部署配置
# 复制为 .env 后修改其中的密钥与密码
# ============================================================
# ---- 镜像 ----
# 镜像名(默认走 GitHub Container Registry,自建镜像时改成自己的)
AIRGATE_IMAGE=ghcr.io/doudou-start/airgate-core
# 镜像版本:latest = 最新发布版本;可固定到 v0.x.y 防止意外升级
AIRGATE_IMAGE_TAG=latest
# ---- 端口绑定 ----
# 应用对外端口(默认 9517)
PORT=9517
# 监听地址:0.0.0.0 = 公网可访问;127.0.0.1 = 仅本机(适合反向代理后部署)
BIND_HOST=0.0.0.0
# ---- 时区 ----
TZ=Asia/Shanghai
# ---- 数据库密码(必改)----
# Postgres 数据库密码,首次启动后请勿再修改(数据卷已绑定)
DB_PASSWORD=change-me-please
# ---- Redis 密码(必改)----
# Redis 鉴权密码。Redis 跑在内部 docker 网络,但仍建议设置以加强纵深防御。
# 与 DB_PASSWORD 不同,Redis 不会把密码持久化到数据卷,后续可随时修改后重启容器。
# 生成方法:openssl rand -hex 24
REDIS_PASSWORD=change-me-please
# ---- JWT 密钥(必改)----
# 用于签发用户登录 token,建议 32 字节以上随机字符串
# 生成方法:openssl rand -hex 32
JWT_SECRET=change-me-to-a-long-random-string
# ---- API Key 加密密钥(可选)----
# 用于加密用户 API Key,留空使用内置默认值
# 生成方法:openssl rand -hex 32 (需为 hex 编码 ≥ 64 字符)
API_KEY_SECRET=
# ---- 插件市场 GitHub Token(可选)----
# 提高 GitHub API 限流上限(5000/h),不填则匿名 60/h 也够用
PLUGINS_MARKETPLACE_GITHUB_TOKEN=