change work dir

This commit is contained in:
0xJacky 2022-02-18 18:04:13 +08:00
parent ce850f5e59
commit 08b54b5bbb
31 changed files with 260 additions and 259 deletions

12
main.go
View file

@ -3,10 +3,10 @@ package main
import (
"context"
"flag"
"github.com/0xJacky/Nginx-UI/model"
"github.com/0xJacky/Nginx-UI/router"
"github.com/0xJacky/Nginx-UI/settings"
"github.com/0xJacky/Nginx-UI/tool"
"github.com/0xJacky/Nginx-UI/server/model"
"github.com/0xJacky/Nginx-UI/server/router"
"github.com/0xJacky/Nginx-UI/server/settings"
tool2 "github.com/0xJacky/Nginx-UI/server/tool"
"log"
"net/http"
"os/signal"
@ -31,9 +31,9 @@ func main() {
Handler: router.InitRouter(),
}
log.Printf("nginx config dir path: %s", tool.GetNginxConfPath(""))
log.Printf("nginx config dir path: %s", tool2.GetNginxConfPath(""))
go tool.AutoCert()
go tool2.AutoCert()
// Initializing the server in a goroutine so that
// it won't block the graceful shutdown handling below