add webUI for stage reverseproxy
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
9829ff7358
commit
bc86f6ab1c
1 changed files with 8 additions and 2 deletions
|
@ -15,8 +15,14 @@ RewriteRule ^/v2/(.*)/blobs/([a-zA-Z0-9:]*) https://cdn.registry.fedoraproject.o
|
|||
# This is terible, but Docker.
|
||||
RewriteCond %{REQUEST_METHOD} ^(PATCH|POST|PUT|DELETE)$
|
||||
{% if env == "staging" %}
|
||||
RewriteRule ^/(.*)$ http://docker-registry01:5000/$1 [P,L]
|
||||
RewriteRule ^/(.*)$ http://localhost:6081/$1 [P,L]
|
||||
RewriteRule ^/v2/(.*)$ http://docker-registry01:5000/v2/$1 [P,L]
|
||||
RewriteRule ^/v2/(.*)$ http://localhost:6081/v2/$1 [P,L]
|
||||
|
||||
DocumentRoot /srv/web/registry-index/
|
||||
|
||||
<Directory /srv/web/registry-index>
|
||||
Require all granted
|
||||
</Directory>
|
||||
{% else %}
|
||||
RewriteRule ^/(.*)$ http://localhost:10048/$1 [P,L]
|
||||
RewriteRule ^/(.*)$ http://localhost:6081/$1 [P,L]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue