ipx
ipx copied to clipboard
proxy to file content as is if not image
Describe the feature
It would be super convenient if ipx could just return the content of file as is if the file isn't an image.
This could be done as a feature flag, ex IPX_PROXY_NOT_IMAGE, if enabled, ipx would simply return the file content if the file is not an image.
Of course I understand that you can check what kind of file it is before request to ipx, but there are not entirely convenient conditions for this.
Additional information
- [ ] Would you be willing to help implement this feature?
It imposes a huge security risk. can you explain your usecase?
@pi0 routing to the ipx is handled by Caddy server with file rule.
@pi0 So there are no security issues because
- this functionality is enabled by feature flag, so user understand what he doing
- for my case Caddy server checks existence of the real file