Whilst this approach has worked well I am now exploring custom private networks to improve isolation of apps.
I can create new apps on their own network without issue but the proxy of course will no longer be able to pass the requests on to the apps on a different private network because the proxy sits in the default private network.
I only want the one proxy as it’s configured with dns.
What’s the best way (if any) to be able to pass requests on to the apps regardless of the network they sit in?
Hi
Not sure this would work. Requests come to the proxy for an app but it doesn’t know the network the app is in. It just needs to be able to forward the request to that app but as it’s in a separate network it can’t reach it.
I’m aware of the network field (and I’ve actually commented on another question about this) but this needs to be dynamic.
No, the Nginx proxy itself doesn’t need to know its network name; that’s only needed by you, personally, during early setup—right after the initial app create.
The Nginx proxy can just refer to app-name.flycast, like before:
Exactly, and that pre-configuration is fly ips allocate-v6 --private -a app-name. (Apparently, you don’t even need the --network flag, if you just want it to be accessible from the default network.)
Do this (or the corresponding GraphQL call) right after you create app-name, the target that you’re trying to forward things to.
Possibly I muddled the issue by suggesting that the Nginx proxy also be in a custom network!