Setting up litefs with the proxy and docker

Hi… It’s close: this portion of the configuration tells the Fly edge proxy where to send the incoming traffic, and you want that to instead be the LiteFS proxy (which is specified as port 8080 elsewhere).

The chain should be Fly edge proxy → LiteFS proxy → web application.

That way, the LiteFS proxy can intercept writes and redirect them to the primary, etc.

Hope this helps!


listens at tries to contact
Fly edge proxy (public IP) internal_port
LiteFS proxy internal_port
= proxy.addr
proxy.target
web application proxy.target

litefs.yaml