Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxy to file content as is if not image #257

Open
1 task
vanodevium opened this issue Mar 2, 2025 · 3 comments
Open
1 task

proxy to file content as is if not image #257

vanodevium opened this issue Mar 2, 2025 · 3 comments

Comments

@vanodevium
Copy link

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?
@pi0
Copy link
Member

pi0 commented Mar 3, 2025

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

@vanodevium
Copy link
Author

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

@vanodevium
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants