Compare commits

...

14 Commits

Author SHA1 Message Date
f
6e8462d494 feat: global limit for repository creation 2026-01-16 15:37:17 -03:00
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
51f9ec7564 chore: publish 5.0.2+13.0.4-rootless release 2026-01-10 00:39:54 -03:00
f
5a63921823 Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/forgejo 2026-01-10 00:39:21 -03:00
f
618dc563b2 Merge branch 'main' into anubis 2026-01-10 00:27:48 -03:00
f
865f228137 fix: upgrade to 13.0.4 2026-01-10 00:27:19 -03:00
f
8d3a8942d6 doc: readme 2026-01-10 00:25:15 -03:00
08551b2972 chore: update .env.sample 2025-12-30 11:32:17 +01:00
f
29f71e90c5 feat: anubis 2025-12-24 18:41:16 -03:00
64289a49ea chore: publish 5.0.1+13.0.3-rootless release 2025-11-28 12:02:51 +01:00
072e0a9bcd Merge pull request 'chore: Configure Renovate' (#1) from renovate/configure into main
Reviewed-on: #1
2025-11-20 18:41:08 +00:00
7baf5edeee Add renovate.json 2025-11-20 17:45:36 +00:00
7 changed files with 32 additions and 9 deletions

View File

@ -1,6 +1,6 @@
TYPE=gitea
TYPE=forgejo
DOMAIN=gitea.example.com
DOMAIN=forgejo.example.com
LETS_ENCRYPT_ENV=production
COMPOSE_FILE="compose.yml"
ENABLE_BACKUPS=true
@ -8,11 +8,12 @@ COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.sqlite3.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.postgres.yml"
# Enable to use forgejo instead of gitea
# COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
# SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
GITEA_DOMAIN=git.example.com
# Anubis
# COMPOSE_FILE="$COMPOSE_FILE:compose.anubis.yml"
GITEA_DOMAIN="${DOMAIN}"
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
GITEA_APP_NAME="Git with solidaritea"
GITEA_AUTO_WATCH_NEW_REPOS=false
@ -35,6 +36,7 @@ GITEA_REQUIRE_SIGNIN_VIEW=true
GITEA_ENABLE_PUSH_CREATE_USER=false
GITEA_ENABLE_PUSH_CREATE_ORG=false
GITEA_LFS_START_SERVER=false
GITEA_MAX_CREATION_LIMIT=-1
GITEA_REPO_UPLOAD_ENABLED=true
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*

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)!

View File

@ -1,4 +1,4 @@
export APP_INI_VERSION=v23
export APP_INI_VERSION=v24
export DOCKER_SETUP_SH_VERSION=v1
export PG_BACKUP_VERSION=v1

View File

@ -38,6 +38,7 @@ ENABLE_OPENID_SIGNUP = {{ env "GITEA_ENABLE_OPENID_SIGNUP" }}
DEFAULT_BRANCH = main
ENABLE_PUSH_CREATE_USER = {{ env "GITEA_ENABLE_PUSH_CREATE_USER" }}
ENABLE_PUSH_CREATE_ORG = {{ env "GITEA_ENABLE_PUSH_CREATE_ORG" }}
MAX_CREATION_LIMIT = {{ env "GITEA_MAX_CREATION_LIMIT" }}
[repository.upload]
ENABLED = {{ env "GITEA_REPO_UPLOAD_ENABLED" }}

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

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: codeberg.org/forgejo/forgejo:13.0.2-rootless
image: codeberg.org/forgejo/forgejo:13.0.4-rootless
configs:
- source: app_ini
target: /etc/gitea/app.ini
@ -55,6 +55,7 @@ services:
- GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME
- GITEA_LFS_START_SERVER=${GITEA_LFS_START_SERVER:-false}
- GITEA_ENABLE_INTERNAL_SIGNIN
- GITEA_MAX_CREATION_LIMIT=${GITEA_MAX_CREATION_LIMIT:--1}
volumes:
- data:/var/lib/gitea
- config:/etc/gitea
@ -89,7 +90,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.0+13.0.2-rootless
- coop-cloud.${STACK_NAME}.version=5.0.3+13.0.4-rootless
networks:

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}