FIX: Set the Host header in the nginx.conf upstream block
authorMichael Brown <supermathie@gmail.com>
Thu, 19 Dec 2024 19:53:04 +0000 (14:53 -0500)
committerMichael Brown <michael@mikeandgen.ca>
Thu, 19 Dec 2024 20:29:49 +0000 (15:29 -0500)
commitd8a363b60e92fff3ba2338daa6cdb1b04bff3680
treea8d87e53aa731996ed5c2e91f764cec5c4b5e63a
parent0e767585d634f0442438ecd1250804b0572dad1c
FIX: Set the Host header in the nginx.conf upstream block

Using e.g. `proxy_pass http://discourse` resets the Host header on the upstream
request to `discourse`.

This would break multisites, so we don't want that; the most effetive way to
ensure it's set properly is to `set_header` in the upstream block.
templates/web.template.yml