animeic 1 жил өмнө
parent
commit
4d9e28f734

+ 8 - 3
nginx/conf.d/default.conf

@@ -1,4 +1,9 @@
-server {
+
+
+http {
+  set_real_ip_from 0.0.0.0/0;
+  real_ip_header X-Forwarded-For;
+  server {
     listen       80;
     listen  [::]:80;
     server_name  localhost;
@@ -19,11 +24,11 @@ server {
         # proxy_set_header X-Forwarded-Host $server_name;
         # proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Real-IP $remote_addr;
-        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_set_header X-Forwarded-For $remote_addr;
         # real_client_ip = $realip_remote_addr;
         proxy_pass  http://pay:8888/pay/;
     }   
 
 }
-
+}