Thorsten Schubert
4f4cb4258d
All checks were successful
continuous-integration/drone/push Build is passing
1.5 KiB
1.5 KiB
Install
-
Prepare the build directory:
./configure release
-
Set configuration options:
meson configure -Ddomain=example.org -Dpath=/my/path
-
For additional options see:
meson configure build | grep -A12 Project
-
Build:
ninja -v -C build
-
Install to
/usr/local
by default:sudo meson install -C build
Info
-
Working instance at https://unsha.re:
meson configure -Dloglevel=3 -Dmax_size=8388608 -Dmax_age=90 -Dpath=/srv/p \ -Ddomain=unsha.re -Db_pie=false -Db_staticpic=false -Db_lto_threads=1 \ -Daddrs_pasted=78.47.159.47:9999,[2a01:4f8:c0c:4814::2]:9999 \ -Daddrs_erased=78.47.159.47:10000,[2a01:4f8:c0c:4814::2]:10000
-
Recommended nft configuration for rate limiting:
set set_tcpaste_meter_v4 { type ipv4_addr size 65535 flags timeout, dynamic timeout 5m gc-interval 1m } set set_tcpaste_meter_v6 { type ipv6_addr size 65535 flags timeout, dynamic timeout 5m gc-interval 1m } tcp dport {9999,10000} ct state new add @set_tcpaste_meter_v4 { ip saddr limit rate 5/minute } accept tcp dport {9999,10000} ct state new add @set_tcpaste_meter_v6 { ip6 saddr limit rate 5/minute } accept