You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/CHANGELOG.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
## [Unreleased]
13
13
14
+
<!-- This changes the project to: -->
15
+
16
+
- Move metrics server configuration to [the policy file](./admin/policies.mdx#metrics-server).
14
17
- Expose [pprof endpoints](https://pkg.go.dev/net/http/pprof) on the metrics listener to enable profiling Anubis in production.
15
18
- fix: prevent nil pointer panic in challenge validation when threshold rules match during PassChallenge (#1463)
16
19
- Instruct reverse proxies to not cache error pages.
17
20
- Fixed mixed tab/space indentation in Caddy documentation code block
18
21
- Improve error messages and fix broken REDIRECT_DOMAINS link in docs ([#1193](https://github.com/TecharoHQ/anubis/issues/1193))
19
22
- Add Bulgarian locale ([#1394](https://github.com/TecharoHQ/anubis/pull/1394))
20
-
21
-
<!-- This changes the project to: -->
22
23
- Fix CEL internal errors when iterating `headers`/`query` map wrappers by implementing map iterators for `HTTPHeaders` and `URLValues` ([#1465](https://github.com/TecharoHQ/anubis/pull/1465)).
Copy file name to clipboardExpand all lines: docs/docs/admin/installation.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,15 +87,15 @@ Anubis uses these environment variables for configuration:
87
87
|`ED25519_PRIVATE_KEY_HEX_FILE`| unset | Path to a file containing the hex-encoded ed25519 private key. Only one of this or its sister option may be set. **Required when using persistent storage backends** (like bbolt) to ensure challenges survive service restarts. When running multiple instances on the same base domain, the key must be the same across all instances. |
88
88
|`ERROR_TITLE`| unset | <EO /> If set, override the translation stack to show a custom title for error pages such as "Something went wrong!". See [Customizing messages](./botstopper.mdx#customizing-messages) for more details. |
89
89
|`JWT_RESTRICTION_HEADER`|`X-Real-IP`| If set, the JWT is only valid if the current value of this header matches the value when the JWT was created. You can use it e.g. to restrict a JWT to the source IP of the user using `X-Real-IP`. |
90
-
|`METRICS_BIND`|`:9090`| The network address that Anubis serves Prometheus metrics on. See `BIND` for more information. |
91
-
|`METRICS_BIND_NETWORK`|`tcp`| The address family that the Anubis metrics server listens on. See `BIND_NETWORK` for more information. |
90
+
|`METRICS_BIND`|`:9090`| The legacy configuration value for the network address that Anubis serves Prometheus metrics on. Please migrate this to [the policy file](./policies.mdx#metrics-server) as soon as possible.|
91
+
|`METRICS_BIND_NETWORK`|`tcp`| The legacy configuration value for the address family that Anubis serves Prometheus metrics on. Please migrate this to [the policy file](./policies.mdx#metrics-server) as soon as possible.|
92
92
|`OG_EXPIRY_TIME`|`24h`| The expiration time for the Open Graph tag cache. Prefer using [the policy file](./configuration/open-graph.mdx) to configure the Open Graph subsystem. |
93
93
|`OG_PASSTHROUGH`|`false`| If set to `true`, Anubis will enable Open Graph tag passthrough. Prefer using [the policy file](./configuration/open-graph.mdx) to configure the Open Graph subsystem. |
94
94
|`OG_CACHE_CONSIDER_HOST`|`false`| If set to `true`, Anubis will consider the host in the Open Graph tag cache key. Prefer using [the policy file](./configuration/open-graph.mdx) to configure the Open Graph subsystem. |
95
95
|`OVERLAY_FOLDER`| unset | <EO /> If set, treat the given path as an [overlay folder](./botstopper.mdx#custom-images-and-css), allowing you to customize CSS, fonts, images, and add other assets to BotStopper deployments. |
96
96
|`POLICY_FNAME`| unset | The file containing [bot policy configuration](./policies.mdx). See the bot policy documentation for more details. If unset, the default bot policy configuration is used. |
97
97
|`PUBLIC_URL`| unset | The externally accessible URL for this Anubis instance, used for constructing redirect URLs (e.g., for Traefik forwardAuth). Leave it unset when Anubis terminates traffic directly (sidecar/standalone deployments) or redirect building will fail with `redir=null`. |
98
-
|`REDIRECT_DOMAINS`| unset | Comma-separated list of domain names that Anubis should allow redirects to when passing a challenge. See [Redirect Domain Configuration](./configuration/redirect-domains.mdx) for more details. |
98
+
|`REDIRECT_DOMAINS`| unset | Comma-separated list of domain names that Anubis should allow redirects to when passing a challenge. See [Redirect Domain Configuration](./configuration/redirect-domains.mdx) for more details. |
99
99
|`SERVE_ROBOTS_TXT`|`false`| If set `true`, Anubis will serve a default `robots.txt` file that disallows all known AI scrapers by name and then additionally disallows every scraper. This is useful if facts and circumstances make it difficult to change the underlying service to serve such a `robots.txt` file. |
100
100
|`SLOG_LEVEL`|`INFO`| The log level for structured logging. Valid values are `DEBUG`, `INFO`, `WARN`, and `ERROR`. Set to `DEBUG` to see all requests, evaluations, and detailed diagnostic information. |
101
101
|`SOCKET_MODE`|`0770`|_Only used when at least one of the `*_BIND_NETWORK` variables are set to `unix`._ The socket mode (permissions) for Unix domain sockets. |
Copy file name to clipboardExpand all lines: docs/docs/admin/policies.mdx
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,27 @@ remote_addresses:
117
117
- 100.64.0.0/10
118
118
```
119
119
120
+
## Metrics server
121
+
122
+
Anubis includes support for [Prometheus-style metrics](https://prometheus.io/docs/introduction/overview/), allowing systems administrators to monitor Anubis' performance and effectiveness. This is a separate HTTP server with metrics, health checking, and debug routes.
123
+
124
+
Anubis' metrics server is configured with the `metrics` block in the configuration file:
125
+
126
+
```yaml
127
+
metrics:
128
+
bind: ":9090"
129
+
network: "tcp"
130
+
```
131
+
132
+
If you want to bind metrics to a Unix socket, make sure to set the network to `unix` and add a socket mode:
133
+
134
+
```yaml
135
+
metrics:
136
+
bind: "/tmp/anubis_metrics.sock"
137
+
network: unix
138
+
socketMode: "0700" # must be a string
139
+
```
140
+
120
141
## Imprint / Impressum support
121
142
122
143
Anubis has support for showing imprint / impressum information. This is defined in the `impressum` block of your configuration. See [Imprint / Impressum configuration](./configuration/impressum.mdx) for more information.
0 commit comments