From fa675f322c5d089083c4d4f241546fafb5ff790a Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Tue, 17 Dec 2024 08:24:32 +0000 Subject: [PATCH] fix: [CODE-2728]: fix webhook internal url to not read from db (#3002) * fix * fix: [CODE-2728]: fix webhook internal url to not read from db --- cli/operations/server/config.go | 1 - types/config.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/cli/operations/server/config.go b/cli/operations/server/config.go index 70aafb395..9cd47f766 100644 --- a/cli/operations/server/config.go +++ b/cli/operations/server/config.go @@ -331,7 +331,6 @@ func ProvideWebhookConfig(config *types.Config) webhook.Config { MaxRetries: config.Webhook.MaxRetries, AllowPrivateNetwork: config.Webhook.AllowPrivateNetwork, AllowLoopback: config.Webhook.AllowLoopback, - InternalWebhooksURL: config.Webhook.InternalWebhooksURL, } } diff --git a/types/config.go b/types/config.go index 1501e544f..ab9860fc7 100644 --- a/types/config.go +++ b/types/config.go @@ -339,8 +339,6 @@ type Config struct { AllowLoopback bool `envconfig:"GITNESS_WEBHOOK_ALLOW_LOOPBACK" default:"false"` // RetentionTime is the duration after which webhook executions will be purged from the DB. RetentionTime time.Duration `envconfig:"GITNESS_WEBHOOK_RETENTION_TIME" default:"168h"` // 7 days - // InternalWebhooksURL is the url for webhooks which are marked as internal - InternalWebhooksURL string `envconfig:"GITNESS_WEBHOOK_INTERNAL_WEBHOOKS_URL"` } Trigger struct {