Compare commits

...

6 Commits

Author SHA1 Message Date
f
675d6b9347 chore: publish 5.0.3+13.0.4-rootless release 2026-01-10 16:47:55 -03:00
9696bef17a Merge pull request 'feat: anubis' (#10) from anubis into main
Reviewed-on: #10
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-01-10 17:57:36 +00:00
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
4 changed files with 17 additions and 1 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"

View File

@ -89,7 +89,7 @@ services:
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
- coop-cloud.${STACK_NAME}.version=5.0.2+13.0.4-rootless
- coop-cloud.${STACK_NAME}.version=5.0.3+13.0.4-rootless
networks: