mirror of
https://github.com/harness/drone.git
synced 2025-05-31 03:32:44 +00:00
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:
parent
77ddc2a601
commit
fa675f322c
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user