2023-06-22 22:14:18 +08:00
|
|
|
|
Listen = "0.0.0.0:5678"
|
2024-05-20 15:11:14 +08:00
|
|
|
|
ProxyURL = ""
|
|
|
|
|
MysqlDns = "root:12345678@tcp(geekai-mysql:3306)/chatgpt_plus?charset=utf8mb4&collation=utf8mb4_unicode_ci&parseTime=True&loc=Local"
|
|
|
|
|
StaticDir = "./static"
|
|
|
|
|
StaticUrl = "/static"
|
2023-10-08 18:09:46 +08:00
|
|
|
|
WeChatBot = false
|
2023-06-22 22:14:18 +08:00
|
|
|
|
|
|
|
|
|
[Session]
|
2024-05-20 15:11:14 +08:00
|
|
|
|
SecretKey = "azyehq3ivunjhbntz78isj00i4hz2mt9xtddysfucxakadq4qbfrt0b7q3lnvg80"
|
2023-06-22 22:14:18 +08:00
|
|
|
|
MaxAge = 86400
|
|
|
|
|
|
2024-03-22 13:47:16 +08:00
|
|
|
|
[AdminSession]
|
|
|
|
|
SecretKey = "wr1uzwz2meai4z9j0e0tsyf6x523ui6zpnyaim4x2x37meakv13349llqpipyk40"
|
|
|
|
|
MaxAge = 8640000
|
|
|
|
|
|
2024-05-20 15:11:14 +08:00
|
|
|
|
[Redis]
|
|
|
|
|
Host = "geekai-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
|
|
|
|
|
2024-05-20 15:11:14 +08:00
|
|
|
|
[ApiConfig]
|
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-05-20 15:11:14 +08:00
|
|
|
|
[SMS]
|
|
|
|
|
Active = "Ali"
|
|
|
|
|
[SMS.Ali]
|
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Product = "Dysmsapi"
|
|
|
|
|
Domain = "dysmsapi.aliyuncs.com"
|
|
|
|
|
Sign = ""
|
|
|
|
|
CodeTempId = ""
|
|
|
|
|
[SMS.Bao]
|
|
|
|
|
Username = ""
|
|
|
|
|
Password = ""
|
|
|
|
|
Domain = "api.smsbao.com"
|
|
|
|
|
Sign = "【极客学长】"
|
|
|
|
|
CodeTemplate = "您的验证码是{code}。5分钟有效,若非本人操作,请忽略本短信。"
|
2024-02-22 17:53:39 +08:00
|
|
|
|
|
2024-05-20 15:11:14 +08:00
|
|
|
|
[OSS]
|
|
|
|
|
Active = "Local"
|
|
|
|
|
[OSS.Local]
|
|
|
|
|
BasePath = "./static/upload"
|
|
|
|
|
BaseURL = "/static/upload"
|
|
|
|
|
[OSS.Minio]
|
|
|
|
|
Endpoint = ""
|
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Bucket = "geekai"
|
|
|
|
|
SubDir = ""
|
|
|
|
|
UseSSL = false
|
|
|
|
|
Domain = ""
|
|
|
|
|
[OSS.QiNiu]
|
|
|
|
|
Zone = "z2"
|
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Bucket = ""
|
|
|
|
|
SubDir = ""
|
|
|
|
|
Domain = ""
|
|
|
|
|
[OSS.AliYun]
|
|
|
|
|
Endpoint = "oss-cn-hangzhou.aliyuncs.com"
|
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
|
|
|
|
Bucket = "geekai"
|
|
|
|
|
SubDir = ""
|
|
|
|
|
Domain = ""
|
2023-10-08 18:09:46 +08:00
|
|
|
|
|
2024-03-28 18:13:33 +08:00
|
|
|
|
[[MjProxyConfigs]]
|
2024-05-20 15:11:14 +08:00
|
|
|
|
Enabled = false
|
2024-05-21 11:03:11 +08:00
|
|
|
|
ApiURL = "http://geekai-midjourney-proxy:8082"
|
2024-05-20 15:11:14 +08:00
|
|
|
|
Mode = ""
|
2024-03-28 18:13:33 +08:00
|
|
|
|
ApiKey = "sk-geekmaster"
|
2023-10-08 18:09:46 +08:00
|
|
|
|
|
2024-01-23 17:56:22 +08:00
|
|
|
|
[[MjPlusConfigs]]
|
2024-05-20 15:11:14 +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
|
2024-05-20 15:11:14 +08:00
|
|
|
|
Model = ""
|
2024-01-07 22:32:59 +08:00
|
|
|
|
ApiURL = ""
|
|
|
|
|
ApiKey = ""
|
2023-12-15 09:04:02 +08:00
|
|
|
|
|
2024-05-20 15:11:14 +08:00
|
|
|
|
[XXLConfig] # xxl-job 配置,需要你部署 XXL-JOB 定时任务工具,用来定期清理未支付订单和清理过期 VIP,如果你没有启用支付服务,则该服务也无需启动
|
|
|
|
|
Enabled = true # 是否启用 XXL JOB 服务
|
2024-05-21 11:03:11 +08:00
|
|
|
|
ServerAddr = "http://geekai-xxl-job-admin:8080/xxl-job-admin" # xxl-job-admin 管理地址
|
2024-05-20 15:11:14 +08:00
|
|
|
|
ExecutorIp = "geekai-api" # 执行器 IP 地址
|
2023-11-10 16:49:07 +08:00
|
|
|
|
ExecutorPort = "9999" # 执行器服务端口
|
2024-05-20 15:11:14 +08:00
|
|
|
|
AccessToken = "GeekMaster" # 执行器 API 通信 token
|
|
|
|
|
RegistryKey = "chatgpt-plus" # 任务注册 key,需要与 xxl-job 管理后台配置一致,请不要随意改动
|
2023-11-10 16:49:07 +08:00
|
|
|
|
|
|
|
|
|
[AlipayConfig]
|
2024-05-20 15:11:14 +08:00
|
|
|
|
Enabled = false
|
|
|
|
|
SandBox = false
|
|
|
|
|
AppId = "9021000131658023"
|
|
|
|
|
UserId = "2088721020750581"
|
|
|
|
|
PrivateKey = "certs/alipay/privateKey.txt"
|
|
|
|
|
PublicKey = "certs/alipay/appPublicCert.crt"
|
|
|
|
|
AlipayPublicKey = "certs/alipay/alipayPublicCert.crt"
|
|
|
|
|
RootCert = "certs/alipay/alipayRootCert.crt"
|
|
|
|
|
NotifyURL = "https://ai.r9it.com/api/payment/alipay/notify"
|
|
|
|
|
ReturnURL = ""
|
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-05-20 15:11:14 +08:00
|
|
|
|
ReturnURL = ""
|
2024-01-07 22:32:59 +08:00
|
|
|
|
|
2024-05-20 15:11:14 +08:00
|
|
|
|
[SmtpConfig] # 注意,阿里云服务器禁用了25号端口,请使用 465 端口,并开启 TLS 连接
|
2024-04-26 16:07:02 +08:00
|
|
|
|
UseTls = false
|
2024-01-07 22:32:59 +08:00
|
|
|
|
Host = "smtp.163.com"
|
|
|
|
|
Port = 25
|
|
|
|
|
AppName = "极客学长"
|
2024-05-20 15:11:14 +08:00
|
|
|
|
From = "test@163.com" # 发件邮箱人地址
|
|
|
|
|
Password = "" #邮箱 stmp 服务授权码
|
2024-01-07 22:32:59 +08:00
|
|
|
|
|
2024-05-20 15:11:14 +08:00
|
|
|
|
[JPayConfig]
|
2024-01-07 22:32:59 +08:00
|
|
|
|
Enabled = false
|
2024-05-20 15:11:14 +08:00
|
|
|
|
Name = "wechat" # 请不要改动
|
|
|
|
|
AppId = "" # 商户 ID
|
2024-01-07 22:32:59 +08:00
|
|
|
|
PrivateKey = "" # 秘钥
|
2024-01-28 21:56:25 +08:00
|
|
|
|
ApiURL = "https://payjs.cn"
|
2024-05-20 15:11:14 +08:00
|
|
|
|
NotifyURL = "https://ai.r9it.com/api/payment/payjs/notify"
|
|
|
|
|
ReturnURL = ""
|