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
This commit is contained in:
Abhinav Singh 2024-12-17 08:24:32 +00:00 committed by Harness
parent 77ddc2a601
commit fa675f322c
2 changed files with 0 additions and 3 deletions

View File

@ -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,
}
}

View File

@ -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 {