[redirects-web/proxy] Pass in resolvers manually to avoid nginx to resolve vpn.ceph into ceph.g.o



commit ffe90c58cb0bbff02638558b0033b5d1e0b30013
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 1 17:34:02 2022 +0100

    Pass in resolvers manually to avoid nginx to resolve vpn.ceph into ceph.g.o

 conf.d/ceph-dashboard.gnome.org.conf | 2 ++
 conf.d/ceph-metrics.gnome.org.conf   | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/conf.d/ceph-dashboard.gnome.org.conf b/conf.d/ceph-dashboard.gnome.org.conf
index 54b265b..5593aa1 100644
--- a/conf.d/ceph-dashboard.gnome.org.conf
+++ b/conf.d/ceph-dashboard.gnome.org.conf
@@ -8,6 +8,8 @@ server {
     listen 8080;
     server_name ceph-dashboard.gnome.org;
 
+    resolver 172.31.2.9 172.31.2.33;
+
     location / {
         proxy_set_header Host $http_host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
diff --git a/conf.d/ceph-metrics.gnome.org.conf b/conf.d/ceph-metrics.gnome.org.conf
index 1960bdd..88c8382 100644
--- a/conf.d/ceph-metrics.gnome.org.conf
+++ b/conf.d/ceph-metrics.gnome.org.conf
@@ -4,8 +4,10 @@ server {
     server_name ceph-metrics.gnome.org grafana.gnome.org;
 
     location / {
+        proxy_set_header Host $http_host;
         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;
+        proxy_redirect off;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]