fix: recreate http flag (#1144)

This commit is contained in:
Jonas Plum
2025-09-02 22:54:47 +02:00
committed by GitHub
parent de105f19c1
commit 27129f24d5

11
main.go
View File

@@ -40,8 +40,11 @@ func main() {
},
},
{
Name: "serve",
Usage: "Start the Catalyst server",
Name: "serve",
Usage: "Start the Catalyst server",
Flags: []cli.Flag{
&cli.StringFlag{Name: "http", Usage: "HTTP listen address", Value: ":8090"},
},
Action: serve,
},
{
@@ -108,8 +111,10 @@ func serve(ctx context.Context, command *cli.Command) error {
defer cleanup()
addr := command.String("http")
server := &http.Server{
Addr: ":8090",
Addr: addr,
Handler: catalyst,
ReadTimeout: 10 * time.Minute,
}