2023-06-22 22:14:18 +08:00
|
|
|
|
Listen = "0.0.0.0:5678"
|
2023-09-20 11:39:11 +08:00
|
|
|
|
ProxyURL = "" # 如 http://127.0.0.1:7777
|
2024-03-28 18:13:33 +08:00
|
|
|
|
MysqlDns = "root:12345678@tcp(chatgpt-plus-mysql:3306)/chatgpt_plus?charset=utf8mb4&collation=utf8mb4_unicode_ci&parseTime=True&loc=Local"
|
2023-09-20 11:39:11 +08:00
|
|
|
|
StaticDir = "./static" # 静态资源的目录
|
|
|
|
|
StaticUrl = "/static" # 静态资源访问 URL
|
2023-10-08 18:09:46 +08:00
|
|
|
|
WeChatBot = false
|
2023-06-22 22:14:18 +08:00
|
|
|
|
|
|
|
|
|
[Session]
|
2023-09-20 11:39:11 +08:00
|
|
|
|
SecretKey = "azyehq3ivunjhbntz78isj00i4hz2mt9xtddysfucxakadq4qbfrt0b7q3lnvg80" # 注意:这个是 JWT Token 授权密钥,生产环境请务必更换
|
2023-06-22 22:14:18 +08:00
|
|
|
|
MaxAge = 86400
|
|
|
|
|
|
2024-03-22 13:47:16 +08:00
|
|
|
|
[AdminSession]
|
|
|
|
|
SecretKey = "wr1uzwz2meai4z9j0e0tsyf6x523ui6zpnyaim4x2x37meakv13349llqpipyk40"
|
|
|
|
|
MaxAge = 8640000
|
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[Redis] # redis 配置信息
|
2024-03-22 13:47:16 +08:00
|
|
|
|
Host = "chatgpt-plus-redis"
|
2023-06-27 18:29:46 +08:00
|
|
|
|
Port = 6379
|
2024-03-22 13:47:16 +08:00
|
|
|
|
Password = "12345678"
|
2023-09-20 11:39:11 +08:00
|
|
|
|
DB = 0
|
2023-07-24 18:18:09 +08:00
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[ApiConfig] # 微博热搜,今日头条等函数服务 API 配置,此为第三方插件服务,如需使用请联系作者开通
|
2024-03-22 13:47:16 +08:00
|
|
|
|
ApiURL = "http://service.r9it.com:9001"
|
2023-09-20 11:39:11 +08:00
|
|
|
|
AppId = ""
|
|
|
|
|
Token = ""
|
2023-07-25 17:00:24 +08:00
|
|
|
|
|
2024-02-22 17:53:39 +08:00
|
|
|
|
|
2024-01-28 21:56:25 +08:00
|
|
|
|
[SMS] # Sms 配置,用于发送短信
|
2024-01-23 17:56:22 +08:00
|
|
|
|
Active = "Ali" # 当前启用的短信服务,默认使用阿里云
|
2024-01-28 21:56:25 +08:00
|
|
|
|
[SMS.Bao]
|
2024-01-23 17:56:22 +08:00
|
|
|
|
Username = ""
|
|
|
|
|
Password = ""
|
|
|
|
|
Domain = "api.smsbao.com"
|
|
|
|
|
Sign = "【极客学长】"
|
|
|
|
|
CodeTemplate = "您的验证码是{code}。5分钟有效,若非本人操作,请忽略本短信。"
|
2024-01-28 21:56:25 +08:00
|
|
|
|
[SMS.Ali]
|
2024-01-23 17:56:22 +08:00
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Product = "Dysmsapi"
|
|
|
|
|
Domain = "dysmsapi.aliyuncs.com"
|
|
|
|
|
Sign = ""
|
|
|
|
|
CodeTempId = ""
|
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[OSS] # OSS 配置,用于存储 MJ 绘画图片
|
2024-03-28 15:00:53 +08:00
|
|
|
|
Active = "Local" # 默认使用本地文件存储引擎
|
2023-08-21 06:57:04 +08:00
|
|
|
|
[OSS.Local]
|
2023-09-20 11:39:11 +08:00
|
|
|
|
BasePath = "./static/upload" # 本地文件上传根路径
|
2024-02-23 11:43:27 +08:00
|
|
|
|
BaseURL = "/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可
|
2023-08-21 06:57:04 +08:00
|
|
|
|
[OSS.Minio]
|
2023-09-20 11:39:11 +08:00
|
|
|
|
Endpoint = "" # 如 172.22.11.200:9000
|
|
|
|
|
AccessKey = "" # 自己去 Minio 控制台去创建一个 Access Key
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Bucket = "chatgpt-plus" # 替换为你自己创建的 Bucket,注意要给 Bucket 设置公开的读权限,否则会出现图片无法显示。
|
2023-08-21 06:57:04 +08:00
|
|
|
|
UseSSL = false
|
2023-09-20 11:39:11 +08:00
|
|
|
|
Domain = "" # 地址必须是能够通过公网访问的,否则会出现图片无法显示。
|
2023-09-06 14:37:13 +08:00
|
|
|
|
[OSS.QiNiu] # 七牛云 OSS 配置
|
|
|
|
|
Zone = "z2" # 区域,z0:华东,z1: 华北,na0:北美,as0:新加坡
|
2023-09-20 11:39:11 +08:00
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Bucket = ""
|
2023-10-08 18:09:46 +08:00
|
|
|
|
Domain = "" # OSS Bucket 所绑定的域名,如 https://img.r9it.com
|
2024-03-25 11:40:03 +08:00
|
|
|
|
[OSS.AliYun]
|
|
|
|
|
Endpoint = "oss-cn-hangzhou.aliyuncs.com"
|
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Bucket = "chatgpt-plus"
|
|
|
|
|
SubDir = ""
|
|
|
|
|
Domain = ""
|
2023-10-08 18:09:46 +08:00
|
|
|
|
|
2024-03-28 18:13:33 +08:00
|
|
|
|
[[MjProxyConfigs]]
|
|
|
|
|
Enabled = true
|
|
|
|
|
ApiURL = "http://midjourney-proxy:8082"
|
|
|
|
|
ApiKey = "sk-geekmaster"
|
2023-10-08 18:09:46 +08:00
|
|
|
|
|
2024-01-23 17:56:22 +08:00
|
|
|
|
[[MjPlusConfigs]]
|
2024-03-22 13:47:16 +08:00
|
|
|
|
Enabled = false
|
|
|
|
|
ApiURL = "https://api.chat-plus.net"
|
|
|
|
|
Mode = "fast"
|
|
|
|
|
ApiKey = "sk-xxx"
|
2024-01-07 22:32:59 +08:00
|
|
|
|
|
|
|
|
|
[[SdConfigs]]
|
|
|
|
|
Enabled = false
|
|
|
|
|
ApiURL = ""
|
|
|
|
|
ApiKey = ""
|
2023-12-15 09:04:02 +08:00
|
|
|
|
|
2023-11-10 16:49:07 +08:00
|
|
|
|
[XXLConfig] # xxl-job 配置,需要你部署 XXL-JOB 定时任务工具,用来定期清理未支付订单和清理过期 VIP,如果你没有启用支付服务,则该服务也无需启动
|
2024-03-22 13:47:16 +08:00
|
|
|
|
Enabled = true # 是否启用 XXL JOB 服务
|
|
|
|
|
ServerAddr = "http://xxl-job-admin:8080/xxl-job-admin" # xxl-job-admin 管理地址
|
|
|
|
|
ExecutorIp = "chatgpt-plus-api" # 执行器 IP 地址
|
2023-11-10 16:49:07 +08:00
|
|
|
|
ExecutorPort = "9999" # 执行器服务端口
|
2024-03-22 13:47:16 +08:00
|
|
|
|
AccessToken = "GeekMaster" # 执行器 API 通信 token
|
2023-11-10 16:49:07 +08:00
|
|
|
|
RegistryKey = "chatgpt-plus" # 任务注册 key
|
|
|
|
|
|
|
|
|
|
[AlipayConfig]
|
|
|
|
|
Enabled = false # 启用支付宝支付通道
|
|
|
|
|
SandBox = false # 是否启用沙盒模式
|
|
|
|
|
UserId = "2088721020750581" # 商户ID
|
|
|
|
|
AppId = "9021000131658023" # App Id
|
|
|
|
|
PrivateKey = "certs/alipay/privateKey.txt" # 应用私钥
|
|
|
|
|
PublicKey = "certs/alipay/appPublicCert.crt" # 应用公钥证书
|
|
|
|
|
AlipayPublicKey = "certs/alipay/alipayPublicCert.crt" # 支付宝公钥证书
|
|
|
|
|
RootCert = "certs/alipay/alipayRootCert.crt" # 支付宝根证书
|
2024-01-07 22:32:59 +08:00
|
|
|
|
NotifyURL = "https://ai.r9it.com/api/payment/alipay/notify" # 支付异步回调地址
|
2023-12-12 07:25:36 +08:00
|
|
|
|
|
2024-01-07 22:32:59 +08:00
|
|
|
|
[HuPiPayConfig]
|
2023-12-12 07:25:36 +08:00
|
|
|
|
Enabled = false
|
|
|
|
|
Name = "wechat"
|
2024-01-28 21:56:25 +08:00
|
|
|
|
AppId = ""
|
|
|
|
|
AppSecret = ""
|
|
|
|
|
ApiURL = "https://api.xunhupay.com"
|
2024-01-07 22:32:59 +08:00
|
|
|
|
NotifyURL = "https://ai.r9it.com/api/payment/hupipay/notify"
|
|
|
|
|
|
2024-04-26 16:07:02 +08:00
|
|
|
|
[SmtpConfig] # 注意,阿里云服务器禁用了25号端口,请使用 465 端口,并开启 TLS 连接
|
|
|
|
|
UseTls = false
|
2024-01-07 22:32:59 +08:00
|
|
|
|
Host = "smtp.163.com"
|
|
|
|
|
Port = 25
|
|
|
|
|
AppName = "极客学长"
|
|
|
|
|
From = "test@163.com" # 发件邮箱人地址
|
|
|
|
|
Password = "" #邮箱 stmp 服务授权码
|
|
|
|
|
|
|
|
|
|
[JPayConfig] # PayJs 支付配置
|
|
|
|
|
Enabled = false
|
|
|
|
|
Name = "wechat" # 请不要改动
|
|
|
|
|
AppId = "" # 商户 ID
|
|
|
|
|
PrivateKey = "" # 秘钥
|
2024-01-28 21:56:25 +08:00
|
|
|
|
ApiURL = "https://payjs.cn"
|
2024-01-07 22:32:59 +08:00
|
|
|
|
NotifyURL = "https://ai.r9it.com/api/payment/payjs/notify" # 异步回调地址,域名改成你自己的
|