2023-06-22 22:14:18 +08:00
|
|
|
|
Listen = "0.0.0.0:5678"
|
2023-06-27 18:29:46 +08:00
|
|
|
|
ProxyURL = "http://172.22.11.200:7777"
|
2023-07-24 18:18:09 +08:00
|
|
|
|
MysqlDns = "root:mysql_pass@tcp(localhost:3306)/chatgpt_plus?charset=utf8mb4&collation=utf8mb4_unicode_ci&parseTime=True&loc=Local"
|
2023-06-27 18:29:46 +08:00
|
|
|
|
StaticDir = "./static"
|
2023-07-24 18:18:09 +08:00
|
|
|
|
StaticUrl = "http://localhost:5678/static"
|
2023-07-25 17:00:24 +08:00
|
|
|
|
AesEncryptKey = "{YOUR_AES_KEY}"
|
2023-06-22 22:14:18 +08:00
|
|
|
|
|
|
|
|
|
[Session]
|
2023-07-24 18:18:09 +08:00
|
|
|
|
SecretKey = "m0cjm3gsuw9jk73np1ni7r42koilybjcndlycjdmq7za3pbqn7w12fyok5pqh6q5"
|
2023-06-22 22:14:18 +08:00
|
|
|
|
MaxAge = 86400
|
|
|
|
|
|
|
|
|
|
[Manager]
|
|
|
|
|
Username = "admin"
|
|
|
|
|
Password = "admin123"
|
2023-06-27 18:29:46 +08:00
|
|
|
|
|
|
|
|
|
[Redis]
|
|
|
|
|
Host = "localhost"
|
|
|
|
|
Port = 6379
|
|
|
|
|
Password = ""
|
2023-07-24 18:18:09 +08:00
|
|
|
|
|
2023-07-25 17:00:24 +08:00
|
|
|
|
[ApiConfig]
|
|
|
|
|
ApiURL = "{URL}"
|
|
|
|
|
AppId = "{APP_ID}"
|
|
|
|
|
Token = "{TOKEN}"
|
|
|
|
|
|
2023-07-24 18:18:09 +08:00
|
|
|
|
[SmsConfig]
|
2023-07-25 17:00:24 +08:00
|
|
|
|
AccessKey = "{YOUR_ACCESS_KEY}"
|
|
|
|
|
AccessSecret = "{YOUR_SECRET_KEY}"
|
2023-07-24 18:18:09 +08:00
|
|
|
|
Product = "Dysmsapi"
|
|
|
|
|
Domain = "dysmsapi.aliyuncs.com"
|
|
|
|
|
|
2023-08-17 06:55:11 +08:00
|
|
|
|
[ExtConfig]
|
|
|
|
|
ApiURL = "插件扩展 API 地址"
|
2023-08-21 06:57:04 +08:00
|
|
|
|
Token = "插件扩展 API Token"
|
|
|
|
|
|
2023-09-05 14:28:30 +08:00
|
|
|
|
[OSS]
|
2023-08-21 06:57:04 +08:00
|
|
|
|
Active = "local"
|
|
|
|
|
[OSS.Local]
|
|
|
|
|
BasePath = "./static/upload"
|
|
|
|
|
BaseURL = "http://localhost:5678/static/upload"
|
|
|
|
|
[OSS.Minio]
|
|
|
|
|
Endpoint = "IP:端口"
|
|
|
|
|
AccessKey = "minio oss access key"
|
|
|
|
|
AccessSecret = "minio oss access secret"
|
2023-09-06 14:37:13 +08:00
|
|
|
|
Bucket = "minio oss bucket"
|
2023-08-21 06:57:04 +08:00
|
|
|
|
UseSSL = false
|
2023-09-05 14:28:30 +08:00
|
|
|
|
Domain = "minio 文件公开访问地址"
|
2023-09-06 14:37:13 +08:00
|
|
|
|
[OSS.QiNiu] # 七牛云 OSS 配置
|
|
|
|
|
Zone = "z2" # 区域,z0:华东,z1: 华北,na0:北美,as0:新加坡
|
|
|
|
|
AccessKey = "七牛云 OSS AccessKey"
|
|
|
|
|
AccessSecret = "七牛云 OSS AccessSecret"
|
|
|
|
|
Bucket = "七牛云 OSS Bucket"
|
|
|
|
|
Domain = "OSS Bucket 所绑定的域名,如 https://img.r9it.com"
|