diff options
| author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-03-15 22:56:21 +0000 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-03-15 22:56:21 +0000 |
| commit | 9841d619fcfb51269259d5ad6efbb9fc9bcc1946 (patch) | |
| tree | 07538db6e528fb0492c495d9c164912bda3e255f /roles/httpd/reverseproxy | |
| parent | 8ecd475e303ac965a2a337369257d056b932eb31 (diff) | |
| download | ansible-9841d619fcfb51269259d5ad6efbb9fc9bcc1946.tar.gz ansible-9841d619fcfb51269259d5ad6efbb9fc9bcc1946.tar.xz ansible-9841d619fcfb51269259d5ad6efbb9fc9bcc1946.zip | |
Why, Docker, why? I thought we were friends
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/httpd/reverseproxy')
| -rw-r--r-- | roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf index cd166081d..e3e9f5a43 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf @@ -14,7 +14,11 @@ 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] +{% else %} RewriteRule ^/(.*)$ http://localhost:10048/$1 [P,L] +{% endif %} RewriteRule ^/(.*)$ http://localhost:6081/$1 [P,L] SSLVerifyClient optional |
