Skip to content

Commit

Permalink
add port
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Apr 3, 2023
1 parent cf2c61c commit 9f97a63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ out
{
"proxy": "socks5://127.0.0.1:7890",
"LimitPerMinute": 6,
"HttpPort": 8080,
"org": "org-xx",
"api_key": "sk-xxx,sk-xxx2",
"Prefix": "用中文问答,分析%s java代码存在哪些安全风险,如何验证、确认他们",
Expand Down
3 changes: 2 additions & 1 deletion pkg/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pkg
import (
"embed"
"github.com/gin-gonic/gin"
util "github.com/hktalent/go-utils"
"github.com/hktalent/go-utils/bigdb/blevExp"
"net/http"
)
Expand All @@ -20,5 +21,5 @@ func CreateHttp3Server(static1 embed.FS) {

blevExp.DoIndexDb(router, static1, blevExp.DataDir, func(r001 *gin.Engine) {})

RunHttp3(":8080", router)
RunHttp3(":"+util.GetVal("HttpPort"), router)
}

0 comments on commit 9f97a63

Please sign in to comment.