oxyno-zeta / s3-proxy

S3 Reverse Proxy with GET, PUT and DELETE methods and authentication (OpenID Connect and Basic Auth)
https://oxyno-zeta.github.io/s3-proxy/
Apache License 2.0
292 stars 33 forks source link

Can't set a context-path for the server config #412

Closed fostermi closed 7 months ago

fostermi commented 7 months ago

Thanks for the great work on this!

I'm trying to run this on a specific context path (e.g. https://example.com/data/) but I don't see a way to do this. This is causing a problem because the OIDC configuration creates a dynamically generated 307 redirect to a "callback" relative URL that contains the URL of the host it comes in on (i.e. /auth/provider?rd=https%3A%2F%2Fexample.com%2) , but not when it contains a context path. Assuming the issue is lack of configuration for this, how can I fix it?

fostermi commented 7 months ago

Ah, ok. That was my fault. I was stripping out the context-path before handing it off to s3-proxy.