mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-05-17 12:03:09 +00:00
c082cd89dc
Signed-off-by: Xe Iaso <me@xeiaso.net>
21 lines
323 B
Bash
Executable File
21 lines
323 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
function cleanup() {
|
|
pkill -P $$
|
|
}
|
|
|
|
trap cleanup EXIT SIGINT
|
|
|
|
go tool anubis --help 2>/dev/null || :
|
|
|
|
go run ../cmd/unixhttpd &
|
|
|
|
go tool anubis \
|
|
--policy-fname ./anubis.yaml \
|
|
--use-remote-address \
|
|
--target=unix://$(pwd)/unixhttpd.sock &
|
|
|
|
go tool backoff-retry node ./test.mjs
|