Compare commits

...

4 Commits

Author SHA1 Message Date
f
670c6d070e Merge branch 'main' into anubis 2026-01-10 00:44:34 -03:00
f
618dc563b2 Merge branch 'main' into anubis 2026-01-10 00:27:48 -03:00
f
8d3a8942d6 doc: readme 2026-01-10 00:25:15 -03:00
f
29f71e90c5 feat: anubis 2025-12-24 18:41:16 -03:00
3 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,9 @@ COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
# Anubis
# COMPOSE_FILE="$COMPOSE_FILE:compose.anubis.yml"
GITEA_DOMAIN="${DOMAIN}"
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
GITEA_APP_NAME="Git with solidaritea"

View File

@ -59,3 +59,9 @@ ssh -T -p 2222 git@my.gitea.example.com
```
Note that gitea should be configured to listen to port 2222, i.e. `GITEA_SSH_PORT=2222` in the gitea config.
## Protect Forgejo 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)!

7
compose.anubis.yml Normal file
View File

@ -0,0 +1,7 @@
---
version: "3.8"
services:
app:
deploy:
labels:
- "traefik.http.routers.${STACK_NAME}.middlewares=anubis,${STACK_NAME}_cors"