I also make use of Caddy’s built in file server to serve static pages so this is good to know about HAProxy
Comment on Looking to move from Caddy
lemmyvore@feddit.nl 1 week agoJust keep in mind that HAProxy is only a proxy (technically a performance-oriented load-balancer). It’s not a web server.
I mention it because some of us also rely on our reverse proxy to serve small static webpages for various purposes (I serve a small status page generated by a cron script, for example).
confusedpuppy@lemmy.dbzer0.com 1 week ago
Devnullit@lemmy.dbzer0.com 1 week ago
You can serve static pages by using the error page config line with monitor uri
I also just use acme certbot (setup via puppet letsencrypt module) to do the certs and there’s a restart haproxy post script on cert update
lemmyvore@feddit.nl 6 days ago
I would argue that’s a bit of a perversion 😃 but on the other hand if it can serve my static page… I’ll have to reconsider HAProxy for my stuff. Thanks!
Devnullit@lemmy.dbzer0.com 6 days ago
Haha I get it, something something doing it because we could,… But never ask if we should. But it’s a fun trick with haproxys features, you could probably also do something with acls and or lua too if you wanted to be fancy