geekai/deploy/conf/config.toml

135 lines
3.5 KiB
TOML
Raw Normal View History

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"
WeChatBot = false
TikaHost = "http://tika:9998"
[Session]
2024-05-20 15:11:14 +08:00
SecretKey = "azyehq3ivunjhbntz78isj00i4hz2mt9xtddysfucxakadq4qbfrt0b7q3lnvg80"
MaxAge = 86400
[AdminSession]
SecretKey = "wr1uzwz2meai4z9j0e0tsyf6x523ui6zpnyaim4x2x37meakv13349llqpipyk40"
MaxAge = 8640000
2024-05-20 15:11:14 +08:00
[Redis]
Host = "geekai-redis"
Port = 6379
Password = "12345678"
DB = 0
2024-05-20 15:11:14 +08:00
[ApiConfig]
ApiURL = "http://sapi.geekai.me"
AppId = ""
Token = ""
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 = ""
[[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 = ""
ApiKey = "sk-geekmaster"
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 地址
ExecutorPort = "9999" # 执行器服务端口
2024-05-20 15:11:14 +08:00
AccessToken = "GeekMaster" # 执行器 API 通信 token
RegistryKey = "chatgpt-plus" # 任务注册 key需要与 xxl-job 管理后台配置一致,请不要随意改动
[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 = ""