1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 23:03:47 +01:00

feat: can start and stop containers now using the drop down. This feature is not enabled by default. (#2548)

This commit is contained in:
Akash Ramaswamy
2023-12-01 03:34:22 +05:30
committed by GitHub
parent 050e499f8e
commit f78534f529
11 changed files with 160 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ type args struct {
Healthcheck *HealthcheckCmd `arg:"subcommand:healthcheck" help:"checks if the server is running."`
RemoteHost []string `arg:"env:DOZZLE_REMOTE_HOST,--remote-host,separate" help:"list of hosts to connect remotely"`
AuthProvider string `arg:"--auth-provider,env:DOZZLE_AUTH_PROVIDER" default:"none" help:"sets the auth provider to use. Currently only forward-proxy is supported."`
EnableActions bool `arg:"env:DOZZLE_ENABLE_ACTIONS" default:"false" help:"enables essential actions on containers from the web interface."`
}
type HealthcheckCmd struct {
@@ -212,6 +213,7 @@ func createServer(args args, clients map[string]web.DockerClient) *http.Server {
Provider: provider,
Authorizer: authorizer,
},
EnableActions: args.EnableActions,
}
assets, err := fs.Sub(content, "dist")