diff options
| author | Patrick Uiterwijk <patrick@puiterwijk.org> | 2017-08-04 00:22:01 +0200 |
|---|---|---|
| committer | Patrick Uiterwijk <patrick@puiterwijk.org> | 2017-08-04 00:22:01 +0200 |
| commit | 5bd010cc68a464f12f47bb8d41b42a04ce0e0047 (patch) | |
| tree | 374aaf4f265d8352a8dcd06f87ba175a240a79d5 /roles/httpd/reverseproxy/templates | |
| parent | 92f05807241f582bbf4dd38b5c5121ed29e067ff (diff) | |
| download | ansible-5bd010cc68a464f12f47bb8d41b42a04ce0e0047.tar.gz ansible-5bd010cc68a464f12f47bb8d41b42a04ce0e0047.tar.xz ansible-5bd010cc68a464f12f47bb8d41b42a04ce0e0047.zip | |
Move to registry02/03 in production
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Diffstat (limited to 'roles/httpd/reverseproxy/templates')
| -rw-r--r-- | roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf index e43ed5f4a..67a36f56e 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf @@ -14,8 +14,7 @@ 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 ^/v2/(.*)$ http://docker-registry01:5000/v2/$1 [P,L] +RewriteRule ^/v2/(.*)$ http://docker-registry02:5000/v2/$1 [P,L] RewriteRule ^/v2/(.*)$ http://localhost:6081/v2/$1 [P,L] DocumentRoot /srv/web/registry-index/ @@ -23,10 +22,6 @@ 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] -{% endif %} SSLVerifyClient optional SSLVerifyDepth 1 |
