Varnish & Trellis

Does anyone have some experience with setting up Varnish to sit in front of nginx as it is configured through trellis? I’m having issues trying to discover where to point Varnish at with trellis. Varnish accepts a “back-end” hostname and I have not been able to get trellis to serve content to varnish through IP (since it would seem trellis does not support this - no IP accessibility unless through FQDN.

I’ve tried running nginx on different ports and configuring Varnish on the same machine (not ideal) and pointing it at 127.0.0.1/localhost with whichever port I configure nginx to run on, but they won’t play ball.

Has anyone successfully gotten this configured?

Thank!

1 Like