diff options
| author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-02-13 22:37:39 +0000 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-02-13 22:37:39 +0000 |
| commit | 40476d05a2e280fe78b5554791463d0c15823571 (patch) | |
| tree | 62e6ff3a9bbc61d5db232422c53120b2c5ce01ae /roles/httpd/reverseproxy/templates | |
| parent | dd014ea9f38876bdfec75a3b261935e866a060e6 (diff) | |
| download | ansible-40476d05a2e280fe78b5554791463d0c15823571.tar.gz ansible-40476d05a2e280fe78b5554791463d0c15823571.tar.xz ansible-40476d05a2e280fe78b5554791463d0c15823571.zip | |
Because Docker
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/httpd/reverseproxy/templates')
| -rw-r--r-- | roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf index ab464d2d8..149fd04d4 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf @@ -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 |
