27 lines
580 B
YAML
27 lines
580 B
YAML
# services/zot/middleware.yaml
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: zot-resp-headers
|
|
namespace: zot
|
|
spec:
|
|
headers:
|
|
customResponseHeaders:
|
|
Docker-Distribution-Api-Version: "registry/2.0"
|
|
accessControlAllowOriginList:
|
|
- "*"
|
|
accessControlAllowCredentials: true
|
|
accessControlAllowHeaders:
|
|
- Authorization
|
|
- Content-Type
|
|
- Docker-Distribution-Api-Version
|
|
- X-Registry-Auth
|
|
accessControlAllowMethods:
|
|
- GET
|
|
- HEAD
|
|
- OPTIONS
|
|
- POST
|
|
- PUT
|
|
- PATCH
|
|
- DELETE
|