mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 23:50:01 +03:00
parent
d7a19734ce
commit
1321d9b573
8 changed files with 69 additions and 6 deletions
|
@ -217,6 +217,7 @@ auth:
|
||||||
- [Use docker-registry-ui as a proxy (use REGISTRY_URL)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/ui-as-proxy)
|
- [Use docker-registry-ui as a proxy (use REGISTRY_URL)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/ui-as-proxy)
|
||||||
- [Use docker-registry-ui as standalone (use URL)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/ui-as-standalone)
|
- [Use docker-registry-ui as standalone (use URL)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/ui-as-standalone)
|
||||||
- [Use docker-registry-ui with traefik](https://github.com/Joxit/docker-registry-ui/tree/master/examples/traefik)
|
- [Use docker-registry-ui with traefik](https://github.com/Joxit/docker-registry-ui/tree/master/examples/traefik)
|
||||||
- [Use docker-registry-ui with docker registry and Amazon s3 (#75)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-75)
|
- [Use docker-registry-ui with docker registry and Amazon s3](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-75) ([#75](https://github.com/Joxit/docker-registry-ui/issues/88))
|
||||||
- [FIX revproxy to registry does not work when published under non-root url (#73)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-73)
|
- [FIX revproxy to registry does not work when published under non-root url](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-73) ([#73](https://github.com/Joxit/docker-registry-ui/issues/73))
|
||||||
- [Use docker-registry-ui with HTTPS (#20)](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-20)
|
- [Use docker-registry-ui with HTTPS](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-20) ([#20](https://github.com/Joxit/docker-registry-ui/issues/20))
|
||||||
|
- [Unable to push image when docker-registry-ui is used as a proxy on non 80 port](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-88) ([#88](https://github.com/Joxit/docker-registry-ui/issues/88))
|
||||||
|
|
2
dist/scripts/docker-registry-ui-static.js
vendored
2
dist/scripts/docker-registry-ui-static.js
vendored
File diff suppressed because one or more lines are too long
2
dist/scripts/docker-registry-ui.js
vendored
2
dist/scripts/docker-registry-ui.js
vendored
File diff suppressed because one or more lines are too long
4
examples/issue-88/README.md
Normal file
4
examples/issue-88/README.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Example for issue #88
|
||||||
|
|
||||||
|
When the docker registry ui is used as a proxy and its port is not 80, we can't push images.
|
||||||
|
To fix that, I added the correct Host header in the proxy_set_header.
|
23
examples/issue-88/config.yml
Normal file
23
examples/issue-88/config.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
version: 0.1
|
||||||
|
log:
|
||||||
|
fields:
|
||||||
|
service: registry
|
||||||
|
storage:
|
||||||
|
cache:
|
||||||
|
blobdescriptor: inmemory
|
||||||
|
filesystem:
|
||||||
|
rootdirectory: /var/lib/registry
|
||||||
|
delete:
|
||||||
|
enabled: true
|
||||||
|
http:
|
||||||
|
addr: :5000
|
||||||
|
headers:
|
||||||
|
X-Content-Type-Options: [nosniff]
|
||||||
|
Access-Control-Allow-Origin: ['*']
|
||||||
|
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
|
||||||
|
Access-Control-Expose-Headers: ['Docker-Content-Digest']
|
||||||
|
health:
|
||||||
|
storagedriver:
|
||||||
|
enabled: true
|
||||||
|
interval: 10s
|
||||||
|
threshold: 3
|
34
examples/issue-88/docker-compose.yml
Normal file
34
examples/issue-88/docker-compose.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
registry-srv:
|
||||||
|
image: registry:latest
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- storage:/var/lib/registry
|
||||||
|
- ./config.yml:/etc/docker/registry/config.yml:ro
|
||||||
|
networks:
|
||||||
|
- registry-ui-net
|
||||||
|
container_name: registry-srv
|
||||||
|
|
||||||
|
registry-ui:
|
||||||
|
image: joxit/docker-registry-ui:static
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
environment:
|
||||||
|
- REGISTRY_TITLE=Private Docker Registry
|
||||||
|
- REGISTRY_URL=http://registry-srv:5000
|
||||||
|
- DELETE_IMAGES=true
|
||||||
|
depends_on:
|
||||||
|
- debugproxy
|
||||||
|
networks:
|
||||||
|
- registry-ui-net
|
||||||
|
container_name: registry-ui
|
||||||
|
|
||||||
|
networks:
|
||||||
|
registry-ui-net:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
storage:
|
||||||
|
driver: local
|
|
@ -24,6 +24,7 @@ server {
|
||||||
#! if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
#! if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||||
#! return 404;
|
#! return 404;
|
||||||
#! }
|
#! }
|
||||||
|
#! proxy_set_header Host $http_host;
|
||||||
#! proxy_pass ${REGISTRY_URL};
|
#! proxy_pass ${REGISTRY_URL};
|
||||||
#! }
|
#! }
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docker-registry-ui",
|
"name": "docker-registry-ui",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./node_modules/gulp/bin/gulp.js build"
|
"build": "./node_modules/gulp/bin/gulp.js build"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue