Setting up trusted proxy between Caddy and fly-proxy

Hey, I’m wondering if there’s a way to set up fly-proxy as a trusted proxy?

In Caddy the most straightforward way is using this directive: JSON Config Structure - Caddy Documentation

I also see there’s this extension to use DNS instead of IP: JSON Config Structure - Caddy Documentation

The real question here I suppose is whether the fly-proxy has a consistent static IP or DNS that could be used here? If not, is there an alternative method that could work here?

The proxy will always connect to your app via its 172.19.x.x address. You could trust that whole subnet. Nothing else can talk to it but our own hosts.

1 Like

It looks like I’m also getting a proxy address from 172.16.x.x, is that right or is that something else I’m seeing?

My bad, I forgot we made a change that binds our outbound connections to 172.16.x.x between our proxy and app instances.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.