We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d98f5 commit e634c75Copy full SHA for e634c75
main.go
@@ -10,8 +10,8 @@ import (
10
"fmt"
11
"net"
12
"net/http"
13
- "os"
14
"os/signal"
+ "syscall"
15
16
"github.com/0xJacky/Nginx-UI/internal/cert"
17
"github.com/0xJacky/Nginx-UI/internal/cmd"
@@ -108,7 +108,7 @@ func main() {
108
confPath := appCmd.String("config")
109
settings.Init(confPath)
110
111
- ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
+ ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
112
defer cancel()
113
114
err := risefront.New(ctx, risefront.Config{
0 commit comments