Yuvipanda has submitted this change and it was merged.

Change subject: toollabs: Do not hardcode Host header
......................................................................


toollabs: Do not hardcode Host header

Allows for more flexibility this way

Change-Id: Ie1a2e18b16051b454d8eef730f5a7966ada8f98e
---
M modules/dynamicproxy/templates/urlproxy.conf
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Yuvipanda: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/dynamicproxy/templates/urlproxy.conf 
b/modules/dynamicproxy/templates/urlproxy.conf
index 3b43f9f..6f58e34 100644
--- a/modules/dynamicproxy/templates/urlproxy.conf
+++ b/modules/dynamicproxy/templates/urlproxy.conf
@@ -130,7 +130,7 @@
         proxy_intercept_errors on;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection $connection_upgrade;
-        proxy_set_header Host '<%= @web_domain %>';
+        proxy_set_header Host $host;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header X-Original-URI $request_uri;
 
@@ -148,4 +148,3 @@
     gzip_proxied any;
     gzip_types text/plain text/css text/xml application/json 
application/javascript application/x-javascript text/javascript;
 }
-

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie1a2e18b16051b454d8eef730f5a7966ada8f98e
Gerrit-PatchSet: 6
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <yuvipa...@wikimedia.org>
Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl>
Gerrit-Reviewer: Tim Landscheidt <t...@tim-landscheidt.de>
Gerrit-Reviewer: Yuvipanda <yuvipa...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to