doc: update config sample file

This commit is contained in:
RockYang 2024-01-23 17:56:22 +08:00
parent ec08c24dca
commit 8bdda64794
2 changed files with 37 additions and 40 deletions

View File

@ -34,14 +34,13 @@ WeChatBot = false
CodeTempId = "" CodeTempId = ""
[Sms] # Sms 配置,用于发送短信 [Sms] # Sms 配置,用于发送短信
Active = "SmsBao" # 默认使用 Active = "Ali" # 当前启用的短信服务,默认使用阿里云
[Sms.SmsBao] [Sms.SmsBao]
Account = "" #账号 Username = ""
ApiKey = "" # apikey Password = ""
Domain = "api.smsbao.com" # 发送短信的域名 Domain = "api.smsbao.com"
Sign = "【鲸落科技】" # 签名 Sign = "【极客学长】"
CodeTemplate = "您的验证码是{code}。请于{num}分钟内使用,若非本人操作,请忽略本短信。" # 短信模板 CodeTemplate = "您的验证码是{code}。5分钟有效若非本人操作请忽略本短信。"
Num = "30" # 短信有效期
[Sms.Ali] [Sms.Ali]
AccessKey = "" AccessKey = ""
AccessSecret = "" AccessSecret = ""
@ -80,16 +79,11 @@ WeChatBot = false
DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址 DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址
DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址 DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址
[[MjConfigs]] [[MjPlusConfigs]]
Enabled = false Enabled = false
UserToken = "" ApiURL = "https://api.chatgpt-plus.net" # 目前暂时不支持更改
BotToken = "" ApiKey = "sk-xxx"
GuildId = "" NotifyURL = "https://ai.r9it.com/api/mj/notify" # 这里需要改成你的域名
ChanelId = ""
UseCDN = false #是否使用反向代理访问设置为true下面的设置才会生效
DiscordAPI = "https://mj.r9it.com:8001" # discord API 反代地址
DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址
DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址
[[SdConfigs]] [[SdConfigs]]
Enabled = false Enabled = false
@ -97,18 +91,6 @@ WeChatBot = false
ApiKey = "" ApiKey = ""
Txt2ImgJsonPath = "res/sd/text2img.json" Txt2ImgJsonPath = "res/sd/text2img.json"
[[SdConfigs]]
Enabled = false
ApiURL = ""
ApiKey = ""
Txt2ImgJsonPath = "res/sd/text2img.json"
[[SdConfigs]]
Enabled = false
ApiURL = ""
ApiKey = ""
Txt2ImgJsonPath = "res/text2img.json"
[XXLConfig] # xxl-job 配置,需要你部署 XXL-JOB 定时任务工具,用来定期清理未支付订单和清理过期 VIP如果你没有启用支付服务则该服务也无需启动 [XXLConfig] # xxl-job 配置,需要你部署 XXL-JOB 定时任务工具,用来定期清理未支付订单和清理过期 VIP如果你没有启用支付服务则该服务也无需启动
Enabled = false # 是否启用 XXL JOB 服务 Enabled = false # 是否启用 XXL JOB 服务
ServerAddr = "http://172.22.11.47:8080/xxl-job-admin" # xxl-job-admin 管理地址 ServerAddr = "http://172.22.11.47:8080/xxl-job-admin" # xxl-job-admin 管理地址

View File

@ -34,11 +34,27 @@ WeChatBot = false
Sign = "" Sign = ""
CodeTempId = "" CodeTempId = ""
[Sms] # Sms 配置,用于发送短信
Active = "Ali" # 当前启用的短信服务,默认使用阿里云
[Sms.SmsBao]
Username = ""
Password = ""
Domain = "api.smsbao.com"
Sign = "【极客学长】"
CodeTemplate = "您的验证码是{code}。5分钟有效若非本人操作请忽略本短信。"
[Sms.Ali]
AccessKey = ""
AccessSecret = ""
Product = "Dysmsapi"
Domain = "dysmsapi.aliyuncs.com"
Sign = ""
CodeTempId = ""
[OSS] # OSS 配置,用于存储 MJ 绘画图片 [OSS] # OSS 配置,用于存储 MJ 绘画图片
Active = "local" # 默认使用本地文件存储引擎 Active = "local" # 默认使用本地文件存储引擎
[OSS.Local] [OSS.Local]
BasePath = "./static/upload" # 本地文件上传根路径 BasePath = "./static/upload" # 本地文件上传根路径
BaseURL = "/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 BaseURL = "http://localhost:5678/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可
[OSS.Minio] [OSS.Minio]
Endpoint = "" # 如 172.22.11.200:9000 Endpoint = "" # 如 172.22.11.200:9000
AccessKey = "" # 自己去 Minio 控制台去创建一个 Access Key AccessKey = "" # 自己去 Minio 控制台去创建一个 Access Key
@ -53,7 +69,7 @@ WeChatBot = false
Bucket = "" Bucket = ""
Domain = "" # OSS Bucket 所绑定的域名,如 https://img.r9it.com Domain = "" # OSS Bucket 所绑定的域名,如 https://img.r9it.com
[[MjConfigs]] # 原生 MidJourney 配置 [[MjConfigs]]
Enabled = false Enabled = false
UserToken = "" UserToken = ""
BotToken = "" BotToken = ""
@ -64,12 +80,11 @@ WeChatBot = false
DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址 DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址
DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址 DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址
[[MjPlusConfigs]]
[[MjPlusConfigs]] # MidJourney Plus 配置,建议不要同时配置 MidJourney 和 MidJourney-Plus Enabled = false
Enabled = true ApiURL = "https://api.chatgpt-plus.net" # 目前暂时不支持更改
ApiURL = "https://api.chatgpt-plus.net" ApiKey = "sk-xxx"
ApiKey = "" NotifyURL = "https://ai.r9it.com/api/mj/notify" # 这里需要改成你的域名
NotifyURL = "https://ai.r9it.com/api/mj/notify" # 域名换成你自己的部署域名
[[SdConfigs]] [[SdConfigs]]
Enabled = false Enabled = false
@ -99,9 +114,9 @@ WeChatBot = false
[HuPiPayConfig] [HuPiPayConfig]
Enabled = false Enabled = false
Name = "wechat" Name = "wechat"
AppId = "" AppId = "201906161477"
AppSecret = "" AppSecret = "7f403199d510fb2c6f0b9f2311800e7c"
ApiURL = "https://api.xunhupay.com" PayURL = "https://api.xunhupay.com/payment/do.html"
NotifyURL = "https://ai.r9it.com/api/payment/hupipay/notify" NotifyURL = "https://ai.r9it.com/api/payment/hupipay/notify"
[SmtpConfig] # 注意阿里云服务器禁用了25号端口所以如果需要使用邮件功能请别用阿里云服务器 [SmtpConfig] # 注意阿里云服务器禁用了25号端口所以如果需要使用邮件功能请别用阿里云服务器
@ -116,5 +131,5 @@ WeChatBot = false
Name = "wechat" # 请不要改动 Name = "wechat" # 请不要改动
AppId = "" # 商户 ID AppId = "" # 商户 ID
PrivateKey = "" # 秘钥 PrivateKey = "" # 秘钥
ApiURL = "https://payjs.cn" ApiURL = "https://payjs.cn/api/native"
NotifyURL = "https://ai.r9it.com/api/payment/payjs/notify" # 异步回调地址,域名改成你自己的 NotifyURL = "https://ai.r9it.com/api/payment/payjs/notify" # 异步回调地址,域名改成你自己的