Switch Caddy reverse_proxy to Unix socket for HTML

Changed the HTML reverse proxy in the Caddy server configuration to use a Unix socket connection. This enhances security and performance by avoiding TCP stack overhead and protects against network-based attacks targeting the application server interface. This should only affect internal communication with the uWSGI server.
This commit is contained in:
Kumi 2023-12-31 14:00:51 +01:00
parent 193546fcde
commit 9c32a783c9
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -15,7 +15,7 @@ private.coffee www.private.coffee {
path_regexp html /(.*).html
}
reverse_proxy @html localhost:9810
reverse_proxy @html unix//var/run/uwsgi/privatecoffee.sock
@assets {
path assets /assets/*