diff --git a/homelab-services/minio-service/flake.nix b/homelab-services/minio-service/flake.nix index 25ae7e6..b1fc056 100644 --- a/homelab-services/minio-service/flake.nix +++ b/homelab-services/minio-service/flake.nix @@ -94,6 +94,14 @@ # Add directive for s3like queries, which only accept root path allegedly locations."/" = { 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; + ''; }; }; };