mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
debug: add pprof in master process
This commit is contained in:
parent
8119f935de
commit
ae8646ebfc
1 changed files with 7 additions and 0 deletions
7
main.go
7
main.go
|
@ -4,11 +4,14 @@ import (
|
|||
"context"
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
_ "net/http/pprof"
|
||||
|
||||
"github.com/0xJacky/Nginx-UI/internal/cert"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cmd"
|
||||
|
||||
|
@ -103,6 +106,10 @@ func main() {
|
|||
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
|
||||
go func() {
|
||||
log.Println(http.ListenAndServe(":6060", nil))
|
||||
}()
|
||||
|
||||
err := risefront.New(ctx, risefront.Config{
|
||||
Run: Program(ctx, confPath),
|
||||
Name: "nginx-ui",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue