[nextcloud-web] 2nd attempt for the map statement to work as expected



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]