From c16d42f81e17a4e7e3850d1c80629e808c8dac0e Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Wed, 2 Mar 2022 16:49:00 +0100 Subject: [PATCH] Add missing flag and docs (#825) * Add missing flag and docs Signed-off-by: Lukas Bachschwell Co-authored-by: Anbraten --- cmd/server/flags.go | 7 ++++--- docs/docs/30-administration/10-server-config.md | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/cmd/server/flags.go b/cmd/server/flags.go index 7a89ce703..83b569c27 100644 --- a/cmd/server/flags.go +++ b/cmd/server/flags.go @@ -169,9 +169,10 @@ var flags = []cli.Flag{ Usage: "url used for calling configuration service endpoint", }, &cli.StringFlag{ - EnvVars: []string{"WOODPECKER_CONFIG_SERVICE_SECRET"}, - Name: "config-service-secret", - Usage: "secret to sign requests send to configuration service", + EnvVars: []string{"WOODPECKER_CONFIG_SERVICE_SECRET"}, + Name: "config-service-secret", + Usage: "secret to sign requests send to configuration service", + FilePath: os.Getenv("WOODPECKER_CONFIG_SERVICE_SECRET_FILE"), }, &cli.StringFlag{ EnvVars: []string{"WOODPECKER_DATABASE_DRIVER"}, diff --git a/docs/docs/30-administration/10-server-config.md b/docs/docs/30-administration/10-server-config.md index 7f0289af7..a5c7eb836 100644 --- a/docs/docs/30-administration/10-server-config.md +++ b/docs/docs/30-administration/10-server-config.md @@ -334,6 +334,22 @@ Comma-separated list to limit the specific CPUs or cores a pipeline container ca Example: `WOODPECKER_LIMIT_CPU_SET=1,2` + +### `WOODPECKER_CONFIG_SERVICE_ENDPOINT` +> Default: `` + +Specify a configuration service endpoint, see [Configuration Extension](docs/administration/external-configuration-api) + +### `WOODPECKER_CONFIG_SERVICE_SECRET` +> Default: `` + +Specify a signing secret for the configuration service endpoint, see [Configuration Extension](docs/administration/external-configuration-api) + +### `WOODPECKER_CONFIG_SERVICE_SECRET_FILE` +> Default: `` + +Read the value for `WOODPECKER_CONFIG_SERVICE_SECRET` from the specified filepath + --- ### `WOODPECKER_GITHUB_...`