anubis/cmd/anubis
soopyc 1c00431098
general unix domain sockets support (#45)
* feat: allow binding to unix domain sockets

this is useful when the user does not want to expose more tcp ports than
needed. also simplifes configuration in some situation, like with nixos
modules as the socket paths can be automatically configured.

docs updated with additional configuration flags.

Signed-off-by: Cassie Cheung <me@soopy.moe>

* feat: graceful shutdown and cleanup on signal

this is needed to clean up left-over unix sockets, else on the next boot
listener panics with `address already in use`.

Co-authored-by: cat <cat@gensokyo.uk>
Signed-off-by: Cassie Cheung <me@soopy.moe>

* feat: support unix socket upstream targets

adds support for proxying unix socket upstreams, essentially allowing
anubis to run without listening on tcp sockets at all*.

*for metrics, neither prometheus and victoriametrics supports scraping
from unix sockets. if metrics are desired, tcp sockets are still needed.

Co-authored-by: cat <cat@gensokyo.uk>
Signed-off-by: Cassie Cheung <me@soopy.moe>

* docs: add changelog entry

---------

Signed-off-by: Cassie Cheung <me@soopy.moe>
Co-authored-by: cat <cat@gensokyo.uk>
2025-03-21 10:58:05 -04:00
..
internal Skip TestLookup test when networking is disabled (#49) 2025-03-21 10:43:10 -04:00
js Fix when hardwareConcurrency is undefined (#42) 2025-03-21 08:51:19 -04:00
static Fix when hardwareConcurrency is undefined (#42) 2025-03-21 08:51:19 -04:00
.gitignore initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
botPolicies.json initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
CHANGELOG.md initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
decaymap.go initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
decaymap_test.go initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
index.templ Ensure content flows and stays centered on small screens (#27) 2025-03-20 17:19:45 -04:00
index_templ.go Ensure content flows and stays centered on small screens (#27) 2025-03-20 17:19:45 -04:00
main.go general unix domain sockets support (#45) 2025-03-21 10:58:05 -04:00
policy.go initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
policy_test.go initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00