Comment on Looking to move from Caddy
Devnullit@lemmy.dbzer0.com 1 week agoYou can serve static pages by using the error page config line with monitor uri
listen static-file bind :80 monitor-uri / errorfile 200 /usr/local/etc/haproxy/errors/200.http
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