[nominatim-web] Fix Host header, return X-Cache-Status to client
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nominatim-web] Fix Host header, return X-Cache-Status to client
- Date: Mon, 25 May 2020 12:45:48 +0000 (UTC)
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]