mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 17:03:49 +00:00
Add option to read grpc-secret from file (#1972)
This commit is contained in:
@@ -108,6 +108,7 @@ var flags = []cli.Flag{
|
||||
Name: "grpc-secret",
|
||||
Usage: "grpc jwt secret",
|
||||
Value: "secret",
|
||||
FilePath: os.Getenv("WOODPECKER_GRPC_SECRET_FILE"),
|
||||
},
|
||||
&cli.StringFlag{
|
||||
EnvVars: []string{"WOODPECKER_METRICS_SERVER_ADDR"},
|
||||
|
@@ -270,6 +270,11 @@ Configures the gRPC listener port.
|
||||
|
||||
Configures the gRPC JWT secret.
|
||||
|
||||
### `WOODPECKER_GRPC_SECRET_FILE`
|
||||
> Default: empty
|
||||
|
||||
Read the value for `WOODPECKER_GRPC_SECRET` from the specified filepath.
|
||||
|
||||
### `WOODPECKER_METRICS_SERVER_ADDR`
|
||||
> Default: empty
|
||||
|
||||
|
Reference in New Issue
Block a user