diff --git a/backend/templates/_location.conf b/backend/templates/_location.conf
index a2ecb166d..60bf5032a 100644
--- a/backend/templates/_location.conf
+++ b/backend/templates/_location.conf
@@ -4,7 +4,7 @@
     proxy_set_header Host $host;
     proxy_set_header X-Forwarded-Scheme $scheme;
     proxy_set_header X-Forwarded-Proto  $scheme;
-    proxy_set_header X-Forwarded-For    $remote_addr;
+    proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
     proxy_set_header X-Real-IP		$remote_addr;
 
     proxy_pass       {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};