File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ type Output struct {
24
24
Headers map [string ][]string `json:"headers"`
25
25
Destination string `json:"destination"`
26
26
Disabled bool `json:"disabled"` // Allows disabling forwarding to specific output
27
- Internal bool `json:"internal"`
28
- Timeout int `json:"timeout"` // Destination response timeout
29
- Description string `json:"description"`
27
+ // LockPath ensures that the request path cannot be changed from what is
28
+ // specified in the destination. For example if request is coming to /v1/webhooks/xxx/github-jenkins,
29
+ // with lock path 'false' and destination 'http://localhost:8080' it would go to http://localhost:8080/github-jenkins.
30
+ // However, with lock path 'true', it will be sent to 'http://localhost:8080'
31
+ LockPath bool `json:"lock_path"`
32
+ Internal bool `json:"internal"`
33
+ Timeout int `json:"timeout"` // Destination response timeout
34
+ Description string `json:"description"`
30
35
}
31
36
32
37
// MarshalJSON helper to change time into unix
You can’t perform that action at this time.
0 commit comments