-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
38 lines (33 loc) · 1.34 KB
/
Copy path.env.example
File metadata and controls
38 lines (33 loc) · 1.34 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
# goddns 环境变量配置示例
#
# 使用方法:
# 1. 复制此文件为 .env 或 /etc/goddns/goddns.env
# 2. 填入实际的凭证值
# 3. 设置文件权限:chmod 600 /etc/goddns/goddns.env
# 4. 在配置文件 config.json 中引用:${VARIABLE_NAME}
#
# systemd 用户:
# 在 service 文件中添加:EnvironmentFile=/etc/goddns/goddns.env
#
# crontab 用户:
# 在 crontab 中添加:source /etc/goddns/goddns.env
# 或使用脚本:/etc/goddns/run-goddns.sh
# ========== Cloudflare 配置 ==========
# API Token 获取:https://dash.cloudflare.com/profile/api-tokens
# 需要权限:Zone:DNS:Edit
CLOUDFLARE_API_TOKEN="your_cloudflare_api_token_here"
# Zone ID(可选,留空自动获取)
# 获取方式:Cloudflare Dashboard -> Overview 右侧
CLOUDFLARE_ZONE_ID=""
# ========== 阿里云配置 ==========
# AccessKey 获取:https://ram.console.aliyun.com/manage/ak
# 需要权限:AliyunDNSFullAccess
ALIYUN_ACCESS_KEY_ID="LTAIyour_access_key_id_here"
ALIYUN_ACCESS_KEY_SECRET="your_access_key_secret_here"
# ========== 全局代理(可选) ==========
# 格式:socks5://host:port 或 http://host:port
# 仅 Cloudflare provider 支持代理,阿里云不支持
# GODDNS_PROXY="socks5://127.0.0.1:1080"
# ========== 日志级别(可选) ==========
# 可选值:DEBUG, INFO, WARNING, ERROR
# GODDNS_LOG_LEVEL="INFO"