Skip to content

Commit

Permalink
Merge 7f1c961 into 99ebd93
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored Nov 21, 2024
2 parents 99ebd93 + 7f1c961 commit e934ddd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func main() {
r.POST("/uploadpicv3", server.UploadBase64ImageHandlerV3(rateLimiter, api))
r.POST("/uploadrecord", server.UploadBase64RecordHandler(rateLimiter))
// 使用 CreateHandleValidation,传入 WebhookHandler 实例
r.POST("/webhook", server.CreateHandleValidation(conf.Settings.ClientSecret, webhookHandler))
r.POST("/"+conf.Settings.WebhookPath, server.CreateHandleValidation(conf.Settings.ClientSecret, webhookHandler))
r.Static("/channel_temp", "./channel_temp")
if config.GetFrpPort() == "0" && !config.GetDisableWebui() {
//webui和它的api
Expand Down
1 change: 1 addition & 0 deletions structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ type Settings struct {
Crt string `yaml:"crt"`
Key string `yaml:"key"`
UseSelfCrt bool `yaml:"use_self_crt"`
WebhookPath string `yaml:"webhook_path"`
//日志类
DeveloperLog bool `yaml:"developer_log"`
LogLevel int `yaml:"log_level"`
Expand Down
1 change: 1 addition & 0 deletions template/config_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ settings:
identify_appids : [] #默认不需要设置,完成SSL配置类+server_dir设置为域名+完成备案+ssl全套设置后,若有多个机器人需要过域名校验(自己名下)可设置,格式为,整数appid,组成的数组
crt : "" #证书路径 从你的域名服务商或云服务商申请签发SSL证书(qq要求SSL)
key : "" #密钥路径 Apache(crt文件、key文件)示例: "C:\\123.key" \需要双写成\\
webhook_path : "webhook" #webhook监听的地址,默认\webhook
#日志类
developer_log : false #开启开发者日志 默认关闭
Expand Down

0 comments on commit e934ddd

Please sign in to comment.