add proxy headers

This commit is contained in:
2025-07-03 15:36:34 -05:00
parent 0c8e0b28d6
commit a04d8fc3bd
+8
View File
@@ -94,6 +94,14 @@
# Add directive for s3like queries, which only accept root path allegedly # Add directive for s3like queries, which only accept root path allegedly
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString opts.dataPort}"; proxyPass = "http://localhost:${toString opts.dataPort}";
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 0;
proxy_buffering off;
'';
}; };
}; };
}; };