[redirects-web/proxy] Make sure X-Forwarder-For header is there
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [redirects-web/proxy] Make sure X-Forwarder-For header is there
- Date: Tue, 1 Feb 2022 16:09:17 +0000 (UTC)
commit 6c9c6b56085a432c0d85b995c022dc669bdea3ab
Author: Andrea Veri <averi redhat com>
Date: Tue Feb 1 17:09:00 2022 +0100
Make sure X-Forwarder-For header is there
conf.d/ceph-dashboard.gnome.org.conf | 2 ++
conf.d/ceph-metrics.gnome.org.conf | 2 ++
conf.d/letsencrypt.gnome.org.conf | 2 ++
conf.d/splunk.gnome.org.conf | 2 ++
4 files changed, 8 insertions(+)
---
diff --git a/conf.d/ceph-dashboard.gnome.org.conf b/conf.d/ceph-dashboard.gnome.org.conf
index ebe22a3..872dbb2 100644
--- a/conf.d/ceph-dashboard.gnome.org.conf
+++ b/conf.d/ceph-dashboard.gnome.org.conf
@@ -9,6 +9,8 @@ server {
server_name ceph-dashboard.gnome.org;
location / {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
proxy_pass https://ceph_dashboard;
}
}
diff --git a/conf.d/ceph-metrics.gnome.org.conf b/conf.d/ceph-metrics.gnome.org.conf
index 43405cc..1960bdd 100644
--- a/conf.d/ceph-metrics.gnome.org.conf
+++ b/conf.d/ceph-metrics.gnome.org.conf
@@ -4,6 +4,8 @@ server {
server_name ceph-metrics.gnome.org grafana.gnome.org;
location / {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
proxy_pass https://vpn.ceph-metrics.gnome.org:3000;
}
}
diff --git a/conf.d/letsencrypt.gnome.org.conf b/conf.d/letsencrypt.gnome.org.conf
index e2e932e..1af351e 100644
--- a/conf.d/letsencrypt.gnome.org.conf
+++ b/conf.d/letsencrypt.gnome.org.conf
@@ -4,6 +4,8 @@ server {
server_name letsencrypt.gnome.org;
location / {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
proxy_pass http://vpn.puppetmaster01.gnome.org;
}
}
diff --git a/conf.d/splunk.gnome.org.conf b/conf.d/splunk.gnome.org.conf
index 9d05e8a..cfb8b20 100644
--- a/conf.d/splunk.gnome.org.conf
+++ b/conf.d/splunk.gnome.org.conf
@@ -4,6 +4,8 @@ server {
server_name splunk.gnome.org;
location / {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
proxy_pass http://vpn.splunk01.gnome.org:8000;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]