Skip to main content
Anubis can be installed directly on your system using native packages for Debian, Red Hat, or as a standalone binary.

Downloading Anubis

Download the appropriate package for your system from the latest GitHub release.

Installation Methods

1

Install the package

This installs:
  • Binary at /usr/bin/anubis
  • Systemd service template at /etc/systemd/system/anubis@.service
  • Default configuration at /etc/anubis/default.env
  • Example policy file at /usr/share/doc/anubis/botPolicies.yaml
2

Create instance configuration

Copy the default configuration for your service (e.g., for Gitea):
3

Copy the policy file

4

Configure the instance

Edit /etc/anubis/gitea.env with your settings:
5

Enable and start the service

6

Verify it's running

Systemd Service Configuration

Service Template

Anubis uses a systemd service template (anubis@.service) that allows running multiple instances. The instance name (e.g., gitea) determines which configuration file to load:
  • Service: anubis@gitea.service
  • Config file: /etc/anubis/gitea.env

Managing Services

Configuration Files

Environment File Format

Configuration files in /etc/anubis/ use environment variable syntax:
See the Configuration reference for all available options.

Policy Files

Bot policy files use YAML format:
For more details, see the Bot Policies documentation.

Running Multiple Instances

Protect multiple services by creating separate configuration files:
Each instance runs independently with its own configuration.

Health Checks

HTTP Health Endpoint

Check if Anubis is running:
Returns OK when Anubis is serving traffic.

Built-in Health Check

Use the --healthcheck flag:
Exits with code 0 if healthy, non-zero otherwise.

Signing Keys

When using persistent storage backends or running multiple Anubis instances behind the same load balancer, you must configure a signing key.
Generate an ED25519 private key:
Add to your configuration file:
All instances protecting the same domain must use the same signing key.

Reverse Proxy Integration

After installing Anubis, configure your reverse proxy to route traffic through it:

Nginx

Configure Nginx reverse proxy

Apache

Configure Apache reverse proxy

Caddy

Configure Caddy reverse proxy

HAProxy

Configure HAProxy

Traefik

Configure Traefik

Kubernetes

Deploy on Kubernetes

Troubleshooting

Service won’t start

Check the logs:
Common issues:
  • Port already in use (check BIND and METRICS_BIND)
  • Invalid policy file path or syntax
  • Missing signing key with persistent storage

Permission denied errors

Ensure configuration files are readable:

Can’t reach target service

Verify the TARGET URL is correct and the service is running:

Next Steps

Configuration

Explore all configuration options

Bot Policies

Configure bot detection rules