configpolicy/roles/websites/dustin.hatch.name
Dustin 70909d1b13 websites: Enable PROXY protocol for HTTPS sites
Since the reverse proxy does TLS pass-through instead of termination,
the original source address is lost.  Since the source address is
important for logging, rate limiting, and access control, we need to use
the HAProxy PROXY protocol to pass it along to the web server.

Since the PROXY protocol works at the TCP layer, _all_ connections must
use it. Fortunately, all of the sites hosted by the public web server
are in fact public and only accessed through HAProxy.  Similarly,
enabling it for one named virtual host enables it for all virtual hosts
on that port.  Thus, we only have to explicitly set it for one site, and
all the rest will use it as well.
2025-08-23 22:21:54 -05:00
..
defaults websites: dustin.hatch.name: Deploy new site 2022-04-23 15:30:40 -05:00
files websites: Enable PROXY protocol for HTTPS sites 2025-08-23 22:21:54 -05:00
handlers websites: dustin.hatch.name: Deploy new site 2022-04-23 15:30:40 -05:00
tasks websites: dustin.hatch.name: Deploy new site 2022-04-23 15:30:40 -05:00