diff --git a/.env.sample b/.env.sample index 387fb83..32884e2 100644 --- a/.env.sample +++ b/.env.sample @@ -92,3 +92,6 @@ SECRET_DB_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 75e0353..8115802 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,9 @@ Below are the instructions for the local relay. [abra]: https://git.autonomic.zone/autonomic-cooperative/abra [cc-traefik]: https://git.autonomic.zone/coop-cloud/traefik [cc-postfix-relay]: https://git.autonomic.zone/coop-cloud/traefik + +## 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"