2 unstable releases
0.1.0 | Nov 15, 2024 |
---|---|
0.0.0 | Oct 12, 2024 |
#2146 in Network programming
131 downloads per month
23KB
499 lines
affogato
simple HTTP/HTTPS Proxy
Install
cargo install affogato
Run
affogato -p 3000
Serving (Linux, systemd)
first, move binary to bin directory
sudo mv $HOME/.cargo/bin/affogato /usr/bin/affogato
second, Second, write systemd config. reference
sudo vi /etc/systemd/system/affogato.service
finally, Activate the daemon using systemctl.
sudo systemctl enable affogato
sudo systemctl start affogato
Zero-Downtime Reload (Linux Only)
first server
cargo run
deploy new server without downtime
pkill -SIGQUIT affogato && cargo run -- -u
Dependencies
~11–22MB
~328K SLoC