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:
parent
193546fcde
commit
9c32a783c9
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ private.coffee www.private.coffee {
|
||||||
path_regexp html /(.*).html
|
path_regexp html /(.*).html
|
||||||
}
|
}
|
||||||
|
|
||||||
reverse_proxy @html localhost:9810
|
reverse_proxy @html unix//var/run/uwsgi/privatecoffee.sock
|
||||||
|
|
||||||
@assets {
|
@assets {
|
||||||
path assets /assets/*
|
path assets /assets/*
|
||||||
|
|
Loading…
Reference in a new issue