fix: webhook endpoint YAML attribute (#13983)

Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
Danny Kopping
2024-07-23 16:59:27 +02:00
committed by GitHub
parent 0a07c7e554
commit b817c863ef
3 changed files with 3 additions and 3 deletions

View File

@ -552,7 +552,7 @@ notifications:
webhook:
# The endpoint to which to send webhooks.
# (default: <unset>, type: url)
hello:
endpoint:
# The upper limit of attempts to send a notification.
# (default: 5, type: int)
maxSendAttempts: 5

View File

@ -2300,7 +2300,7 @@ Write out the current server config as YAML to stdout.`,
Env: "CODER_NOTIFICATIONS_WEBHOOK_ENDPOINT",
Value: &c.Notifications.Webhook.Endpoint,
Group: &deploymentGroupNotificationsWebhook,
YAML: "hello",
YAML: "endpoint",
},
{
Name: "Notifications: Max Send Attempts",

2
docs/cli/server.md generated
View File

@ -1366,7 +1366,7 @@ Certificate key file to use.
| ----------- | -------------------------------------------------- |
| Type | <code>url</code> |
| Environment | <code>$CODER_NOTIFICATIONS_WEBHOOK_ENDPOINT</code> |
| YAML | <code>notifications.webhook.hello</code> |
| YAML | <code>notifications.webhook.endpoint</code> |
The endpoint to which to send webhooks.