Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request ThingsPanel#250 from November-12/main
Browse files Browse the repository at this point in the history
add config to main.go
  • Loading branch information
November-12 authored Nov 3, 2023
2 parents 4cc99af + 2f0f7a0 commit 83e1dbc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,10 @@ func main() {
beego.SetStaticPath("/files/init-images", "others/init_images")
// 静态文件路径
beego.SetStaticPath("/files", "files")

beego.BConfig.CopyRequestBody = true
beego.BConfig.WebConfig.Session.SessionOn = true
beego.BConfig.WebConfig.AutoRender = false

beego.Run(":9999")
}

0 comments on commit 83e1dbc

Please sign in to comment.