mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
wip: ChatGPT assistant
This commit is contained in:
parent
ba87f02a53
commit
4cd77f28eb
27 changed files with 3197 additions and 529 deletions
4
main.go
4
main.go
|
@ -7,6 +7,7 @@ import (
|
|||
"github.com/0xJacky/Nginx-UI/server/model"
|
||||
"github.com/0xJacky/Nginx-UI/server/pkg/cert"
|
||||
"github.com/0xJacky/Nginx-UI/server/pkg/nginx"
|
||||
"github.com/0xJacky/Nginx-UI/server/query"
|
||||
"github.com/0xJacky/Nginx-UI/server/router"
|
||||
"github.com/0xJacky/Nginx-UI/server/service"
|
||||
"github.com/0xJacky/Nginx-UI/server/settings"
|
||||
|
@ -50,7 +51,8 @@ func prog(state overseer.State) {
|
|||
|
||||
log.Printf("Nginx config dir path: %s", nginx.GetConfPath())
|
||||
if "" != settings.ServerSettings.JwtSecret {
|
||||
model.Init()
|
||||
db := model.Init()
|
||||
query.Init(db)
|
||||
}
|
||||
|
||||
s := gocron.NewScheduler(time.UTC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue