From fa2df774a112a4e5ae7314a03c02da6f4ea1fa30 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 20 Apr 2026 12:10:15 -0300 Subject: [PATCH] feat: anubis support --- .env.sample | 3 +++ README.md | 6 ++++++ compose.anubis.yml | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 compose.anubis.yml diff --git a/.env.sample b/.env.sample index bb1b5ac..21e68e0 100644 --- a/.env.sample +++ b/.env.sample @@ -95,3 +95,6 @@ SECRET_ADMIN_PASSWORD_VERSION=v1 #COMPOSE_FILE="$COMPOSE_FILE:compose.ftp-2223.yml" #COMPOSE_FILE="$COMPOSE_FILE:compose.ftp-2224.yml" #COMPOSE_FILE="$COMPOSE_FILE:compose.ftp-2225.yml" + +# Anubis +#COMPOSE_FILE="$COMPOSE_FILE:compose.anubis.yml" diff --git a/README.md b/README.md index e46ac10..cacef45 100644 --- a/README.md +++ b/README.md @@ -103,3 +103,9 @@ Make a `.tar.gz` backup of the site's `wp-content` dir and a `.sql.gz` backup of Lastly, if there's a domain name change, run a search and replace: `abra app wp.example.com wp "search-replace https://old.example.com https://wp.example.com"` + +## Protect Wordpress from scrapers with Anubis + +Uncomment the Anubis compose file from the `.env` file and re-deploy the +app. Don't forget to actually [enable Anubis on the Traefik app +too](https://recipes.coopcloud.tech/traefik)! diff --git a/compose.anubis.yml b/compose.anubis.yml new file mode 100644 index 0000000..317028b --- /dev/null +++ b/compose.anubis.yml @@ -0,0 +1,7 @@ +--- +version: "3.8" +services: + app: + deploy: + labels: + - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirectscheme,${STACK_NAME}-redirecthostname,anubis"