No description
- Python 85.4%
- Dockerfile 14.6%
|
All checks were successful
Build and install Docker container / release (push) Successful in 27s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| amnezia-archive-keyring.gpg | ||
| compose.yaml | ||
| Dockerfile | ||
| main.py | ||
| README.md | ||
Wiregaurd/Amneziawg exporter for Prometheus
Set up: use following Docker-compose:
services:
exporter:
image: code.mmk.pw/owner/wg-exporter:latest
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- ./configs:/configs:ro # Optional, folder that contains your wireguard conf-files,
# used to obtain peer names from comment above [Peer] section, see
# example bellow
environment:
- HTTP_PORT=41337 # Optional, defaults to 41337
- HTTP_HOST=127.0.0.1 # Optional, defaults to 127.0.0.1
Named WireGaurd config example:
[Interface]
PrivateKey = XXXX
Address = 10.19.0.1
# Test peer
[Peer]
PublicKey = YYYY
AllowedIPs = 10.19.0.2/32
With this config, Test peer will be used instead of YYYY in metrics.