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