traefik/registry: fix docker push
This commit is contained in:
parent
b4860abb6a
commit
d22e8101e5
2 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@ services:
|
|||
image: "registry:2.8.3"
|
||||
volumes:
|
||||
- oci:/var/lib/registry
|
||||
- ./htpasswd:/auth/htpasswd
|
||||
networks:
|
||||
- traefik
|
||||
- intern
|
||||
|
@ -25,7 +24,7 @@ services:
|
|||
REGISTRY_STORAGE_DELETE_ENABLED: true
|
||||
REGISTRY_CATALOG_MAXENTRIES: 100000 # https://github.com/Joxit/docker-registry-ui/issues/306
|
||||
# https://joxit.dev/docker-registry-ui/#using-cors
|
||||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[https://registry.mgrote.net/ui/]'
|
||||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[https://rui.mgrote.net]'
|
||||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]'
|
||||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]'
|
||||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]'
|
||||
|
|
|
@ -32,6 +32,6 @@ http:
|
|||
- 192.168.2.0/24
|
||||
- 10.25.25.0/24
|
||||
- 192.168.48.0/24 # docker
|
||||
#- 172.18.0.0/16 # ???
|
||||
- 172.18.0.0/16 # gitea-act-runner
|
||||
ipstrategy:
|
||||
depth: 0 # https://doc.traefik.io/traefik/middlewares/http/ipallowlist/#ipstrategydepth
|
||||
|
|
Loading…
Reference in a new issue