Compare commits
42 Commits
3.0.3+1.22
...
anubis
| Author | SHA1 | Date | |
|---|---|---|---|
| 29f71e90c5 | |||
| 64289a49ea | |||
| 072e0a9bcd | |||
| 7baf5edeee | |||
| 43c493dd70 | |||
| 3adf9d3915 | |||
| c0afa0fa48 | |||
| 19cf5e34ee | |||
| dbf2be1463 | |||
| 288f1df668 | |||
| 32b1979f48 | |||
| cde0087d69 | |||
| ef74971b0e | |||
| d86d742ed1 | |||
| 989294173e | |||
| 4e789bf977 | |||
| 485fa32512 | |||
| 54fd30f38a | |||
| 6d586f6ad3 | |||
| 8c9793ace9 | |||
| 4cfc2ac2e0 | |||
| ca4733a0b0 | |||
| 5a65ef04c5 | |||
| 270ed7bb93 | |||
| b2c9d95e60 | |||
| 88b226f713 | |||
| 94af9cea9e | |||
| 85dcf3a0b1 | |||
| 3840e87f2f | |||
| 777aad5da4 | |||
| 5350ce207f | |||
| 2bfec14654 | |||
| b44e18f063 | |||
| 77624221b4 | |||
| ce632c8e5f | |||
| cac5c8d694 | |||
| cf2298162d | |||
| 0bbac9ed9c | |||
| 8ffd4d33be | |||
| 7364f0b87c | |||
| 1619c333c3 | |||
| 6d681457f8 |
@ -51,7 +51,7 @@ steps:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
||||
10
.env.sample
10
.env.sample
@ -10,6 +10,10 @@ COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
|
||||
|
||||
# Enable to use forgejo instead of gitea
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
|
||||
# SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
|
||||
|
||||
# Anubis
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.anubis.yml"
|
||||
|
||||
GITEA_DOMAIN=git.example.com
|
||||
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
|
||||
@ -33,6 +37,7 @@ GITEA_DEFAULT_ORG_VISIBILITY=limited
|
||||
GITEA_REQUIRE_SIGNIN_VIEW=true
|
||||
GITEA_ENABLE_PUSH_CREATE_USER=false
|
||||
GITEA_ENABLE_PUSH_CREATE_ORG=false
|
||||
GITEA_LFS_START_SERVER=false
|
||||
|
||||
GITEA_REPO_UPLOAD_ENABLED=true
|
||||
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*
|
||||
@ -67,6 +72,11 @@ SECRET_SECRET_KEY_VERSION=v1 # length=64
|
||||
# GITEA_ACCOUNT_LINKING=replace-me
|
||||
# GITEA_OAUTH2_CLIENT_ENABLED=replace-me
|
||||
|
||||
# Lifetime of an OAuth2 refresh token in hours, prolly no need to edit. We
|
||||
# were hitting issues with infrequently pushed to repos that were not picked
|
||||
# up by drone after a month of inactivity, hence the option.
|
||||
# GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME=730
|
||||
|
||||
# Indexer (for issue search)
|
||||
# GITEA_REPO_INDEXER_ENABLED=false
|
||||
# GITEA_ISSUE_INDEXER_TYPE=db
|
||||
|
||||
10
README.md
10
README.md
@ -1,11 +1,11 @@
|
||||
# Gitea
|
||||
# Forgejo
|
||||
|
||||
[](https://build.coopcloud.tech/coop-cloud/gitea)
|
||||
[](https://build.coopcloud.tech/coop-cloud/forgejo)
|
||||
|
||||
<!-- metadata -->
|
||||
* **Category**: Development
|
||||
* **Status**: 5
|
||||
* **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream
|
||||
* **Image**: [`forgejo/forgejo`](https://codeberg.org/forgejo/-/packages/container/forgejo/13-rootless), 4, upstream
|
||||
* **Healthcheck**: Yes
|
||||
* **Backups**: Yes
|
||||
* **Email**: Yes
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
1. Set up Docker Swarm and [`abra`][abra]
|
||||
2. Deploy [`coop-cloud/traefik`][cc-traefik]
|
||||
3. `abra app new gitea --secrets` (optionally with `--pass` if you'd like
|
||||
3. `abra app new forgejo --secrets` (optionally with `--pass` if you'd like
|
||||
to save secrets in `pass`)
|
||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
@ -28,7 +28,7 @@
|
||||
Run
|
||||
|
||||
```bash
|
||||
abra app run YOURAPPNAME app gitea -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
|
||||
abra app run YOURAPPNAME app forgejo -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
|
||||
```
|
||||
|
||||
See the [Gitea command-line documentation](https://docs.gitea.io/en-us/command-line/) for more options. Make sure not to forget the `-c /etc/gitea/app.ini`.
|
||||
|
||||
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
||||
export APP_INI_VERSION=v20
|
||||
export APP_INI_VERSION=v23
|
||||
export DOCKER_SETUP_SH_VERSION=v1
|
||||
export PG_BACKUP_VERSION=v1
|
||||
|
||||
|
||||
@ -28,6 +28,7 @@ DEFAULT_USER_VISIBILITY = {{ env "GITEA_DEFAULT_USER_VISIBILITY" }}
|
||||
ALLOWED_USER_VISIBILITY_MODES = {{ env "GITEA_ALLOWED_USER_VISIBILITY_MODES" }}
|
||||
DEFAULT_ORG_VISIBILITY = {{ env "GITEA_DEFAULT_ORG_VISIBILITY" }}
|
||||
REQUIRE_SIGNIN_VIEW = {{ env "GITEA_REQUIRE_SIGNIN_VIEW" }}
|
||||
ENABLE_INTERNAL_SIGNIN = {{ env "GITEA_ENABLE_INTERNAL_SIGNIN" }}
|
||||
|
||||
[openid]
|
||||
ENABLE_OPENID_SIGNIN = {{ env "GITEA_ENABLE_OPENID_SIGNIN" }}
|
||||
@ -60,6 +61,8 @@ SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
|
||||
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
|
||||
SSH_PORT = {{ env "GITEA_SSH_PORT" }}
|
||||
START_SSH_SERVER = true
|
||||
LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }}
|
||||
LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
|
||||
|
||||
[security]
|
||||
INSTALL_LOCK = true
|
||||
|
||||
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"
|
||||
@ -1,5 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: codeberg.org/forgejo/forgejo:9.0.3-rootless
|
||||
@ -10,7 +10,7 @@ services:
|
||||
secrets:
|
||||
- db_password
|
||||
db:
|
||||
image: postgres:15.10
|
||||
image: postgres:15.13
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
||||
|
||||
12
compose.yml
12
compose.yml
@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: "gitea/gitea:1.22.6-rootless"
|
||||
image: codeberg.org/forgejo/forgejo:13.0.3-rootless
|
||||
configs:
|
||||
- source: app_ini
|
||||
target: /etc/gitea/app.ini
|
||||
@ -14,6 +14,7 @@ services:
|
||||
- internal_token
|
||||
- jwt_secret
|
||||
- secret_key
|
||||
- lfs_jwt_secret
|
||||
environment:
|
||||
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
|
||||
- GITEA_APP_NAME
|
||||
@ -51,6 +52,9 @@ services:
|
||||
- GITEA_ALLOWED_USER_VISIBILITY_MODES
|
||||
- GITEA_DEFAULT_ORG_VISIBILITY
|
||||
- GITEA_REQUIRE_SIGNIN_VIEW
|
||||
- GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME
|
||||
- GITEA_LFS_START_SERVER=${GITEA_LFS_START_SERVER:-false}
|
||||
- GITEA_ENABLE_INTERNAL_SIGNIN
|
||||
volumes:
|
||||
- data:/var/lib/gitea
|
||||
- config:/etc/gitea
|
||||
@ -81,10 +85,11 @@ services:
|
||||
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowheaders=content-type,authorization"
|
||||
- "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=3.0.3+1.22.6-rootless
|
||||
- coop-cloud.${STACK_NAME}.version=5.0.1+13.0.3-rootless
|
||||
|
||||
|
||||
networks:
|
||||
@ -112,6 +117,9 @@ secrets:
|
||||
secret_key:
|
||||
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
|
||||
external: true
|
||||
lfs_jwt_secret:
|
||||
name: ${STACK_NAME}_lfs_jwt_secret_${SECRET_LFS_JWT_SECRET_VERSION}
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
||||
3
release/4.0.0+12.0.2-rootless
Normal file
3
release/4.0.0+12.0.2-rootless
Normal file
@ -0,0 +1,3 @@
|
||||
This recipe was forked from the gitea recipe and should be a drop in replacement.
|
||||
|
||||
You can remove this line from your app.env COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
|
||||
1
release/5.0.0+13.0.2-rootless
Normal file
1
release/5.0.0+13.0.2-rootless
Normal file
@ -0,0 +1 @@
|
||||
For breaking changes see: https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/13.0.0.md
|
||||
6
renovate.json
Normal file
6
renovate.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user