Giuseppe Lavagetto has submitted this change and it was merged. (
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(-)
Approvals:
Giuseppe Lavagetto: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/profile/templates/etcd/tls_proxy.conf.erb
b/modules/profile/templates/etcd/tls_proxy.conf.erb
index 30e473a..bb7ed1c 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: merged
Gerrit-Change-Id: Iaef5b42ace4f10c81fe26b76e34fc90764da60f8
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits