Giuseppe Lavagetto has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/355094 )

Change subject: profile::etcd::tlsproxy: fixup nginx configuration for read-only
......................................................................

profile::etcd::tlsproxy: fixup nginx configuration for read-only

Change-Id: Iaef5b42ace4f10c81fe26b76e34fc90764da60f8
---
M modules/profile/templates/etcd/tls_proxy.conf.erb
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/94/355094/1

diff --git a/modules/profile/templates/etcd/tls_proxy.conf.erb 
b/modules/profile/templates/etcd/tls_proxy.conf.erb
index 30e473a..b7d5f22 100644
--- a/modules/profile/templates/etcd/tls_proxy.conf.erb
+++ b/modules/profile/templates/etcd/tls_proxy.conf.erb
@@ -25,9 +25,14 @@
        root /etc/nginx/etcd-errors;
        internal;
     }
-
     <%- if @read_only %>
+
     error_page 403 /readonly.json
+
+    location /401.json {
+       root /etc/nginx/etcd-errors;
+       internal;
+    }    
     <%- end -%>
 
     # One year should be enough for anyone(TM)

-- 
To view, visit https://gerrit.wikimedia.org/r/355094
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaef5b42ace4f10c81fe26b76e34fc90764da60f8
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to