ipx icon indicating copy to clipboard operation
ipx copied to clipboard

proxy to file content as is if not image

Open vanodevium opened this issue 9 months ago • 3 comments

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?

vanodevium avatar Mar 02 '25 16:03 vanodevium

It imposes a huge security risk. can you explain your usecase?

pi0 avatar Mar 03 '25 10:03 pi0

@pi0 routing to the ipx is handled by Caddy server with file rule.

vanodevium avatar Mar 03 '25 10:03 vanodevium

@pi0 So there are no security issues because

  1. this functionality is enabled by feature flag, so user understand what he doing
  2. for my case Caddy server checks existence of the real file

vanodevium avatar Mar 03 '25 10:03 vanodevium