Because Docker
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
dd014ea9f3
commit
40476d05a2
2 changed files with 7 additions and 2 deletions
|
@ -549,6 +549,8 @@
|
|||
- role: httpd/reverseproxy
|
||||
website: registry.fedoraproject.org
|
||||
destname: registry
|
||||
# proxyurl in this one is totally ignored, because Docker.
|
||||
# (turns out it uses PATCH requests that Varnish cannot deal with)
|
||||
proxyurl: "{{ varnish_url }}"
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
|
|
|
@ -7,8 +7,11 @@ ProxyPreserveHost On
|
|||
RewriteRule ^/v2/([a-zA-Z]*)/blobs/([a-zA-Z]*) https://ourregistry/v2/$1/blobs/$2 [R]
|
||||
{% endif %}
|
||||
|
||||
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
# This is terible, but Docker.
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_METHOD} ^(PATCH|POST|PUT|DELETE)$
|
||||
RewriteRule ^/(.*)$ http://localhost:10048/$1 [P,L]
|
||||
RewriteRule ^/(.*)$ http://localhost:6081/$1 [P,L]
|
||||
|
||||
SSLVerifyClient optional
|
||||
SSLVerifyDepth 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue