Compare commits

..
1 Commits
Author SHA1 Message Date
fauno f70a28f9d1 feat: anubis geoip
continuous-integration/drone/pr Build is failing
2026-11-10 16:17:56 -03:00
8 changed files with 51 additions and 24 deletions
+8 -4
View File
@@ -199,10 +199,6 @@ WRITE_TIMEOUT=0s
#COMPOSE_FILE="$COMPOSE_FILE:compose.mumble.yml"
#MUMBLE_ENABLED=1
## Minecraft
#COMPOSE_FILE="$COMPOSE_FILE:compose.minecraft.yml"
#MINECRAFT_ENABLED=1
## Matrix
#COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml"
#MATRIX_FEDERATION_ENABLED=1
@@ -240,6 +236,13 @@ WRITE_TIMEOUT=0s
## Anubis metrics
#COMPOSE_FILE="$COMPOSE_FILE:compose.anubis-metrics.yml"
## Enable Anubis GeoIP detection
#COMPOSE_FILE="$COMPOSE_FILE:compose.anubis-geoip.yml"
# YAML list of blocked ASNs
#ANUBIS_GEOIP_BLOCKED_ASNS='[13335,136907,45102]'
# YAML list of blocked countries
#ANUBIS_GEOIP_BLOCKED_COUNTRIES='[BR,CN,VN]'
## Enable onion service support
#ONION_ENABLED=1
@@ -263,3 +266,4 @@ WRITE_TIMEOUT=0s
#RATE_LIMIT_AVERAGE=100
#RATE_LIMIT_BURST=200
#RATE_LIMIT_PERIOD=1s
+2 -2
View File
@@ -1,4 +1,4 @@
export TRAEFIK_YML_VERSION=v38
export TRAEFIK_YML_VERSION=v37
export FILE_PROVIDER_YML_VERSION=v14
export ENTRYPOINT_VERSION=v5
export ANUBIS_YML_VERSION=v1
export ANUBIS_YML_VERSION=v2
+28
View File
@@ -1,7 +1,35 @@
bots:
{{ if eq (env "ANUBIS_GEOIP_ENABLED") "true" }}
{{ if ne (env "ANUBIS_GEOIP_BLOCKED_ASNS") "" }}
- name: blocked-asns
action: WEIGH
asns:
match: {{ env "ANUBIS_GEOIP_BLOCKED_ASNS" }}
weight:
adjust: 10
{{ end }}
{{ if ne (env "ANUBIS_GEOIP_BLOCKED_COUNTRIES") "" }}
- name: countries-with-aggressive-scrapers
action: WEIGH
geoip:
countries: {{ env "ANUBIS_GEOIP_BLOCKED_COUNTRIES" }}
weight:
adjust: 10
{{ end }}
{{ end }}
- import: (data)/meta/default-config.yaml
{{ if eq (env "ANUBIS_METRICS_ENABLED") "true" }}
metrics:
bind: ":9090"
network: "tcp"
{{ end }}
{{ if eq (env "ANUBIS_GEOIP_ENABLED") "true" }}
geoip:
asn:
path: /var/lib/anubis/GeoLite2-ASN.mmdb
country:
path: /var/lib/anubis/GeoLite2-Country.mmdb
logging:
sink: stdio
asn: true
{{ end }}
+10
View File
@@ -0,0 +1,10 @@
---
version: "3.8"
services:
anubis:
environment:
ANUBIS_GEOIP_ENABLED: "true"
volumes:
- "anubis-geoip:/var/lib/anubis/:ro"
volumes:
anubis-geoip:
-10
View File
@@ -1,10 +0,0 @@
version: "3.8"
services:
app:
environment:
- MINECRAFT_ENABLED
ports:
- target: 25565
published: 25565
protocol: tcp
mode: host
+3 -3
View File
@@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "traefik:v3.7.20"
image: "traefik:v3.7.17"
# Note(decentral1se): *please do not* add any additional ports here.
# Doing so could break new installs with port conflicts. Please use
# the usual `compose.$app.yml` approach for any additional ports
@@ -57,12 +57,12 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.service=api@internal"
- "traefik.http.routers.${STACK_NAME}.middlewares=security@file"
- "coop-cloud.${STACK_NAME}.version=6.6.0+v3.7.20"
- "coop-cloud.${STACK_NAME}.version=6.5.1+v3.7.17"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT}"
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
socket-proxy:
image: lscr.io/linuxserver/socket-proxy:3.4.8
image: lscr.io/linuxserver/socket-proxy:3.4.7
deploy:
endpoint_mode: dnsrr
environment:
-1
View File
@@ -1 +0,0 @@
security update: https://community.traefik.io/t/new-security-update-for-traefik-2-11-2-11-64-3-7-3-7-20-and-3-8-3-8-0/30561
-4
View File
@@ -143,10 +143,6 @@ entrypoints:
metrics-internal:
address: ":8082"
{{- end }}
{{- if eq (env "MINECRAFT_ENABLED") "1" }}
minecraft:
address: ":25565"
{{- end }}
ping:
entryPoint: web