memorysafety / river

This repository is the home of the River reverse proxy application, based on the pingora library from Cloudflare.
https://www.memorysafety.org/initiative/reverse-proxy/
Apache License 2.0
1.46k stars 86 forks source link

Feature Request: Static File Server #35

Open yumusb opened 1 month ago

yumusb commented 1 month ago

Just like this, https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/

jamesmunns commented 1 month ago

This has been scheduled as part of the now-starting Kickstart Spike 2 milestone: https://github.com/memorysafety/river/milestone/3

drcaramelsyrup commented 1 month ago

There is some good discussion and community examples of working implementations shared in the pingora version of this issue. (https://github.com/cloudflare/pingora/issues/40)

jamesmunns commented 4 weeks ago

Just noting that static (or semi-dynamic) file serving may be useful if we would like to use river to integration-test itself, e.g. stand up three "backend" river instances serving static pages, and one "proxy" river instance.

mcpherrinm commented 5 days ago

It would be helpful to be able to serve a static string out of the configuration without requiring a file. For example, you might want to serve something like a simple default page without having to create more files on disk