[nextcloud-web] 2nd attempt for the map statement to work as expected
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nextcloud-web] 2nd attempt for the map statement to work as expected
- Date: Tue, 22 Jun 2021 14:32:14 +0000 (UTC)
commit a15a05d9f7f5a7ccfc45b8deca719b031d23d885
Author: Andrea Veri <averi redhat com>
Date: Tue Jun 22 16:32:04 2021 +0200
2nd attempt for the map statement to work as expected
nginx/nginx.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index eab307a..749c63e 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -29,7 +29,7 @@ http {
map $proxy_add_x_forwarded_for $custom_x_forwarded_for {
default $proxy_add_x_forwarded_for;
- ^::ffff: '';
+ ~^::ffff:(?<ip>.*) '$ip';
}
server {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]