[Bug 286327] [www/go-anubis] can't define custom policies

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 24 Apr 2025 20:15:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286327

            Bug ID: 286327
           Summary: [www/go-anubis] can't define custom policies
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dch@freebsd.org
          Reporter: ports@sapka.me
          Assignee: dch@freebsd.org
             Flags: maintainer-feedback?(dch@freebsd.org)

Hey

First of all - thanks for porting!

I'm trying to add an ALLOW rule. For this I've created a
/usr/local/etc/anubis/policy.json rule with identical value as
https://github.com/TecharoHQ/anubis/blob/main/data/botPolicies.json

Then I modify the rc.conf:

anubis_args="-target http://localhost:4000 -bind :8923 -policy_fname
/usr/local/etc/anubis/policy.json"

After that Anubis loads (the challenge is shown) but after that it doesn't
work. When running "anubis" I see  

{"time":"2025-04-24T22:05:03.368996939+02:00","level":"INFO","msg":"http: proxy
error: dial tcp [::1]:3923: connect: connection refused"}

----

what can I provide to help?

-- 
You are receiving this mail because:
You are the assignee for the bug.