Compare commits
6 Commits
5.0.2+13.0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 675d6b9347 | |||
| 9696bef17a | |||
| 670c6d070e | |||
| 618dc563b2 | |||
| 8d3a8942d6 | |||
| 29f71e90c5 |
@ -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"
|
||||
|
||||
@ -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
7
compose.anubis.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
version: "3.8"
|
||||
services:
|
||||
app:
|
||||
deploy:
|
||||
labels:
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=anubis,${STACK_NAME}_cors"
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user