diff --git a/api/config.sample.toml b/api/config.sample.toml index 1e93001c..53fbaa80 100644 --- a/api/config.sample.toml +++ b/api/config.sample.toml @@ -34,14 +34,13 @@ WeChatBot = false CodeTempId = "" [Sms] # Sms 配置,用于发送短信 - Active = "SmsBao" # 默认使用 + Active = "Ali" # 当前启用的短信服务,默认使用阿里云 [Sms.SmsBao] - Account = "" #账号 - ApiKey = "" # apikey - Domain = "api.smsbao.com" # 发送短信的域名 - Sign = "【鲸落科技】" # 签名 - CodeTemplate = "您的验证码是{code}。请于{num}分钟内使用,若非本人操作,请忽略本短信。" # 短信模板 - Num = "30" # 短信有效期 + Username = "" + Password = "" + Domain = "api.smsbao.com" + Sign = "【极客学长】" + CodeTemplate = "您的验证码是{code}。5分钟有效,若非本人操作,请忽略本短信。" [Sms.Ali] AccessKey = "" AccessSecret = "" @@ -80,16 +79,11 @@ WeChatBot = false DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址 DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址 -[[MjConfigs]] +[[MjPlusConfigs]] Enabled = false - UserToken = "" - BotToken = "" - GuildId = "" - 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 机器人反代地址 + ApiURL = "https://api.chatgpt-plus.net" # 目前暂时不支持更改 + ApiKey = "sk-xxx" + NotifyURL = "https://ai.r9it.com/api/mj/notify" # 这里需要改成你的域名 [[SdConfigs]] Enabled = false @@ -97,18 +91,6 @@ WeChatBot = false ApiKey = "" 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,如果你没有启用支付服务,则该服务也无需启动 Enabled = false # 是否启用 XXL JOB 服务 ServerAddr = "http://172.22.11.47:8080/xxl-job-admin" # xxl-job-admin 管理地址 diff --git a/deploy/conf/config.toml b/deploy/conf/config.toml index 7d3f1453..2fe38d89 100644 --- a/deploy/conf/config.toml +++ b/deploy/conf/config.toml @@ -34,11 +34,27 @@ WeChatBot = false Sign = "" 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 绘画图片 Active = "local" # 默认使用本地文件存储引擎 [OSS.Local] BasePath = "./static/upload" # 本地文件上传根路径 - BaseURL = "/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 + BaseURL = "http://localhost:5678/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 [OSS.Minio] Endpoint = "" # 如 172.22.11.200:9000 AccessKey = "" # 自己去 Minio 控制台去创建一个 Access Key @@ -53,7 +69,7 @@ WeChatBot = false Bucket = "" Domain = "" # OSS Bucket 所绑定的域名,如 https://img.r9it.com -[[MjConfigs]] # 原生 MidJourney 配置 +[[MjConfigs]] Enabled = false UserToken = "" BotToken = "" @@ -64,12 +80,11 @@ WeChatBot = false DiscordCDN = "https://mj.r9it.com:8002" # mj 图片反代地址 DiscordGateway = "wss://mj.r9it.com:8003" # discord 机器人反代地址 - -[[MjPlusConfigs]] # MidJourney Plus 配置,建议不要同时配置 MidJourney 和 MidJourney-Plus - Enabled = true - ApiURL = "https://api.chatgpt-plus.net" - ApiKey = "" - NotifyURL = "https://ai.r9it.com/api/mj/notify" # 域名换成你自己的部署域名 +[[MjPlusConfigs]] + Enabled = false + ApiURL = "https://api.chatgpt-plus.net" # 目前暂时不支持更改 + ApiKey = "sk-xxx" + NotifyURL = "https://ai.r9it.com/api/mj/notify" # 这里需要改成你的域名 [[SdConfigs]] Enabled = false @@ -99,9 +114,9 @@ WeChatBot = false [HuPiPayConfig] Enabled = false Name = "wechat" - AppId = "" - AppSecret = "" - ApiURL = "https://api.xunhupay.com" + AppId = "201906161477" + AppSecret = "7f403199d510fb2c6f0b9f2311800e7c" + PayURL = "https://api.xunhupay.com/payment/do.html" NotifyURL = "https://ai.r9it.com/api/payment/hupipay/notify" [SmtpConfig] # 注意,阿里云服务器禁用了25号端口,所以如果需要使用邮件功能,请别用阿里云服务器 @@ -116,5 +131,5 @@ WeChatBot = false Name = "wechat" # 请不要改动 AppId = "" # 商户 ID PrivateKey = "" # 秘钥 - ApiURL = "https://payjs.cn" + ApiURL = "https://payjs.cn/api/native" NotifyURL = "https://ai.r9it.com/api/payment/payjs/notify" # 异步回调地址,域名改成你自己的 \ No newline at end of file