mirror of
https://github.com/distribution/distribution.git
synced 2025-09-24 12:37:00 +00:00
Merge pull request #1957 from nwt/notification-filtering
Add notification filtering by target media type
This commit is contained in:
@@ -62,6 +62,7 @@ var configStruct = Configuration{
|
||||
Headers: http.Header{
|
||||
"Authorization": []string{"Bearer <example>"},
|
||||
},
|
||||
IgnoredMediaTypes: []string{"application/octet-stream"},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -139,6 +140,8 @@ notifications:
|
||||
url: http://example.com
|
||||
headers:
|
||||
Authorization: [Bearer <example>]
|
||||
ignoredmediatypes:
|
||||
- application/octet-stream
|
||||
reporting:
|
||||
bugsnag:
|
||||
apikey: BugsnagApiKey
|
||||
@@ -165,6 +168,8 @@ notifications:
|
||||
url: http://example.com
|
||||
headers:
|
||||
Authorization: [Bearer <example>]
|
||||
ignoredmediatypes:
|
||||
- application/octet-stream
|
||||
http:
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
|
Reference in New Issue
Block a user