diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf
index c9d501657c..9d7c1ace0d 100644
--- a/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.registry.conf
@@ -55,9 +55,10 @@ SSLOptions +FakeBasicAuth
Require all granted
+
- # Write access to docker-deployer only
- {% if env == "staging" %}
+# Write access to docker-deployer only
+{% if env == "staging" %}
Require user docker-registry-internal-stg
@@ -72,10 +73,8 @@ SSLOptions +FakeBasicAuth
Require all denied
- {% else %}
-
- require valid-user
-
- {% endif %}
-
-
+{% else %}
+
+ require valid-user
+
+{% endif %}