[nominatim-web] Fix Host header, return X-Cache-Status to client



commit 19d8a402024f44cb2ca25c1bb7d5fcb960e89eac
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon May 25 14:45:30 2020 +0200

    Fix Host header, return X-Cache-Status to client

 nginx.conf | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index cd52243..5713d5a 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -74,7 +74,8 @@ http {
            srcache_response_cache_control off;
 
            proxy_pass http://nominatim/search;
-           proxy_set_header Host "nominatim.gnome.org";
+           proxy_set_header Host "nominatim-int.gnome.org";
+           add_header X-Cache-Status $srcache_fetch_status;
        }
 
        location = /reverse {
@@ -101,7 +102,8 @@ http {
            srcache_response_cache_control off;
 
            proxy_pass http://nominatim/reverse;
-           proxy_set_header Host "nominatim.gnome.org";
+           proxy_set_header Host "nominatim-int.gnome.org";
+           add_header X-Cache-Status $srcache_fetch_status;
        }
     }
 }


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