Hoo man has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/181949

Change subject: Force HTTPS for graphite
......................................................................

Force HTTPS for graphite

Change-Id: Ia2abf713f648a6eb9f46670781f9311992eca54e
---
M templates/graphite/graphite.apache.erb
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/49/181949/1

diff --git a/templates/graphite/graphite.apache.erb 
b/templates/graphite/graphite.apache.erb
index 1871d25..f1a0d1d 100644
--- a/templates/graphite/graphite.apache.erb
+++ b/templates/graphite/graphite.apache.erb
@@ -3,6 +3,10 @@
 <VirtualHost *:80>
     ServerName <%= @hostname %>
 
+    # Push to SSL
+    RewriteCond %{HTTP:X-Forwarded-Proto} !https
+    RewriteRule (.) https://<%= @hostname %>%{REQUEST_URI} [R=301]
+
     <Location />
         Order allow,deny
         Allow from all

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2abf713f648a6eb9f46670781f9311992eca54e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hoo man <[email protected]>

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

Reply via email to