Reverse proxy: sozu #2975
eshattow
started this conversation in
Community Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reverse proxy: sozu
Hello, I share some experience about Stalwart with sozu reverse proxy on a Debian 12 virtual private server that has limited memory resources.
Git repository for sozu contains some documentation
https://github.com/sozu-proxy/sozu
Install
n.b. some Rust language tools are present in Debian 13 (codename: "trixie") and missing in Debian 12 (codename: "bookworm"). For this situation of Debian 12 on VPS provider and no Debian 13 base installation possible, the package repository of Debian 13 is added and pinned at a minimal priority:
Installing rust stable to build sozu as new user "sozu":
Build sozu as user "sozu":
Configuration
sozu configuration
Service unit:
Sample config (content of /home/sozu/config.toml):
Script to run certbot:
Note:
stalwart configuration
assumed "/opt/stalwart" installation path of stalwart editing "/opt/stalwart/etc/config.toml":
...and so on. Note that Proxy Protocol V2 is active only when
trusted-networksis configured; this may be configured per listener as above or more generally. The use of Proxy Protocol V2 in stalwart corresponds with the requirement in the reverse proxy ("tcp" cluster protocol in sozu).Summary
Reverse proxy sozu is interesting although there are limitations which make the other reverse proxy projects supported in Stalwart to be a better choice for complex installations. The sample configuration above does not result in a functional installation for the objective of stalwart and generic web server on the same host. Hopefully this is interesting start to discussion about including sozu configuration in the Stalwart documentation.
Beta Was this translation helpful? Give feedback.
All reactions