diff --git a/swarm-syncer/beamup-sync-swarm b/swarm-syncer/beamup-sync-swarm index 96fe37e..e3c1820 100755 --- a/swarm-syncer/beamup-sync-swarm +++ b/swarm-syncer/beamup-sync-swarm @@ -93,6 +93,10 @@ server { proxy_pass http://${appName}; proxy_http_version 1.1; proxy_set_header Connection ""; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; proxy_cache ${appName}_cache; proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504 updating; # this setting is too much, cause with two layers of cache it means that the top layer will index a stale resp