[nextcloud-web] Correct variable is $http_x_forwarded_for
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nextcloud-web] Correct variable is $http_x_forwarded_for
- Date: Tue, 22 Jun 2021 14:42:49 +0000 (UTC)
commit 941ed4dceee7fb9fbabd77f67eb4b27f2925133d
Author: Andrea Veri <averi redhat com>
Date: Tue Jun 22 16:42:40 2021 +0200
Correct variable is $http_x_forwarded_for
nginx/nginx.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 749c63e..edf82b1 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -27,8 +27,8 @@ http {
server localhost:9000;
}
- map $proxy_add_x_forwarded_for $custom_x_forwarded_for {
- default $proxy_add_x_forwarded_for;
+ map $$http_x_forwarded_for $custom_x_forwarded_for {
+ default $http_x_forwarded_for;
~^::ffff:(?<ip>.*) '$ip';
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]