mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-07 07:42:45 +01:00
Compare commits
2 Commits
v0.15.0-rc
...
v0.15.0-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27129f24d5 | ||
|
|
de105f19c1 |
2
.github/workflows/goreleaser.yml
vendored
2
.github/workflows/goreleaser.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
with: { go-version: '1.22' }
|
with: { go-version: '1.22' }
|
||||||
- uses: oven-sh/setup-bun@v1
|
- uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
- run: make build-ui
|
- run: make install-ui build-ui
|
||||||
|
|
||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
11
main.go
11
main.go
@@ -40,8 +40,11 @@ func main() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "serve",
|
Name: "serve",
|
||||||
Usage: "Start the Catalyst server",
|
Usage: "Start the Catalyst server",
|
||||||
|
Flags: []cli.Flag{
|
||||||
|
&cli.StringFlag{Name: "http", Usage: "HTTP listen address", Value: ":8090"},
|
||||||
|
},
|
||||||
Action: serve,
|
Action: serve,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -108,8 +111,10 @@ func serve(ctx context.Context, command *cli.Command) error {
|
|||||||
|
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
|
addr := command.String("http")
|
||||||
|
|
||||||
server := &http.Server{
|
server := &http.Server{
|
||||||
Addr: ":8090",
|
Addr: addr,
|
||||||
Handler: catalyst,
|
Handler: catalyst,
|
||||||
ReadTimeout: 10 * time.Minute,
|
ReadTimeout: 10 * time.Minute,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user