animeic 1 jaar geleden
bovenliggende
commit
599cf362c7
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 5 5
      nginx/conf.d/default.conf

+ 5 - 5
nginx/conf.d/default.conf

@@ -14,11 +14,11 @@ server {
 
     # 支付接口
     location /pay/ {
-        # proxy_set_header Host $host;
-        # proxy_set_header X-Forwarded-For $remote_addr;
-        # proxy_set_header X-Forwarded-Host $server_name;
-        # proxy_set_header X-Real-IP $remote_addr;
-        real_client_ip = $realip_remote_addr;
+        proxy_set_header Host $host;
+        proxy_set_header X-Forwarded-For $remote_addr;
+        proxy_set_header X-Forwarded-Host $server_name;
+        proxy_set_header X-Real-IP $remote_addr;
+        # real_client_ip = $realip_remote_addr;
         proxy_pass  http://pay:8888/pay/;
     }