2023-05-06 11:35:57 +08:00
|
|
|
|
Listen = "0.0.0.0:5678"
|
2023-09-20 11:39:11 +08:00
|
|
|
|
ProxyURL = "" # 如 http://127.0.0.1:7777
|
|
|
|
|
MysqlDns = "root:12345678@tcp(172.22.11.200:3307)/chatgpt_plus?charset=utf8&parseTime=True&loc=Local"
|
|
|
|
|
StaticDir = "./static" # 静态资源的目录
|
|
|
|
|
StaticUrl = "/static" # 静态资源访问 URL
|
|
|
|
|
AesEncryptKey = ""
|
2023-05-06 11:35:57 +08:00
|
|
|
|
|
|
|
|
|
[Session]
|
2023-09-20 11:39:11 +08:00
|
|
|
|
SecretKey = "azyehq3ivunjhbntz78isj00i4hz2mt9xtddysfucxakadq4qbfrt0b7q3lnvg80" # 注意:这个是 JWT Token 授权密钥,生产环境请务必更换
|
2023-05-06 13:58:56 +08:00
|
|
|
|
MaxAge = 86400
|
2023-05-06 11:35:57 +08:00
|
|
|
|
|
|
|
|
|
[Manager]
|
2023-05-06 13:58:56 +08:00
|
|
|
|
Username = "admin"
|
2023-09-20 11:39:11 +08:00
|
|
|
|
Password = "admin123" # 如果是生产环境的话,这里管理员的密码记得修改
|
2023-07-24 18:18:09 +08:00
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[Redis] # redis 配置信息
|
2023-07-24 18:18:09 +08:00
|
|
|
|
Host = "localhost"
|
|
|
|
|
Port = 6379
|
|
|
|
|
Password = ""
|
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 配置,此为第三方插件服务,如需使用请联系作者开通
|
|
|
|
|
ApiURL = ""
|
|
|
|
|
AppId = ""
|
|
|
|
|
Token = ""
|
2023-07-25 17:00:24 +08:00
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[SmsConfig] # 阿里云短信服务配置
|
|
|
|
|
AccessKey = ""
|
|
|
|
|
AccessSecret = ""
|
2023-07-24 18:18:09 +08:00
|
|
|
|
Product = "Dysmsapi"
|
|
|
|
|
Domain = "dysmsapi.aliyuncs.com"
|
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[ExtConfig] # MidJourney和微信机器人服务 API 配置,开通此功能需要配合 chatpgt-plus-exts 项目部署
|
|
|
|
|
ApiURL = "" # 插件扩展 API 地址
|
|
|
|
|
Token = "" # 这个 token 随便填,只要确保跟 chatgpt-plus-exts 项目的 token 一样就行
|
2023-08-21 06:57:04 +08:00
|
|
|
|
|
2023-09-20 11:39:11 +08:00
|
|
|
|
[OSS] # OSS 配置,用于存储 MJ 绘画图片
|
|
|
|
|
Active = "local" # 默认使用本地文件存储引擎
|
2023-08-21 06:57:04 +08:00
|
|
|
|
[OSS.Local]
|
2023-09-20 11:39:11 +08:00
|
|
|
|
BasePath = "./static/upload" # 本地文件上传根路径
|
|
|
|
|
BaseURL = "http://localhost:5678/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 = ""
|
|
|
|
|
Domain = "" # OSS Bucket 所绑定的域名,如 https://img.r9it.com
|