Compare commits

...
16 Commits
Author SHA1 Message Date
fauno f5dc94dc44 Merge branch 'main' into ssh-optional 2026-08-29 13:18:59 -03:00
fauno a74d85f4b1 Merge pull request 'chore: p4u1 stepping down as maintainer' (#47) from renove-p4u1-maintainer into main
Reviewed-on: #47
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-08-25 16:36:31 +00:00
p4u1 2283a6046b Update README.md 2026-08-25 15:28:52 +00:00
fauno 41f5172a42 chore: publish 5.6.1+15.0.7-rootless release 2026-08-20 13:00:31 -03:00
fauno d6e6a8d404 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.7' (#46) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #46
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-08-20 15:58:18 +00:00
renovate-bot 3761b0ab5c chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.7 2026-08-20 09:07:48 +00:00
fauno f3fa092011 chore: publish 5.6.0+15.0.6-rootless release 2026-07-30 19:25:59 -03:00
fauno fe308a35bb Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.6' (#43) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #43
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-07-30 22:25:30 +00:00
renovate-bot 1b16538e65 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.6 2026-07-30 21:06:43 +00:00
fauno e49e3034f1 Merge pull request 'feat: sign commits' (#29) from signing into main
Reviewed-on: #29
Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech>
2026-07-23 11:13:42 +00:00
fauno 690538efc8 chore: publish 5.5.0+15.0.5-rootless release 2026-07-21 11:16:15 -03:00
fauno 9ac1a5fcd9 fix: disable ssh 2026-06-29 16:11:43 -03:00
fauno 7cfea87d99 feat: ssh server is optional 2026-06-29 14:33:04 -03:00
fauno d39848fcd8 fix: variable not in use 2026-06-29 14:32:46 -03:00
fauno 3577535b62 fix: the port number is hardcoded on traefik 2026-06-29 14:32:09 -03:00
fauno a0eeb57427 doc: forgejo 2026-06-29 14:31:20 -03:00
5 changed files with 24 additions and 17 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ GITEA_REPO_UPLOAD_MAX_FILES=5
GITEA_MAILER_FROM=noreply@example.com GITEA_MAILER_FROM=noreply@example.com
GITEA_MAILER_USER=noreply@example.com GITEA_MAILER_USER=noreply@example.com
GITEA_SSH_PORT=2222 # SSH Support
GITEA_SSH_ENABLED=1 COMPOSE_FILE="$COMPOSE_FILE:compose.ssh.yml"
SECRET_INTERNAL_TOKEN_VERSION=v1 # length=105 SECRET_INTERNAL_TOKEN_VERSION=v1 # length=105
SECRET_DB_PASSWORD_VERSION=v1 SECRET_DB_PASSWORD_VERSION=v1
+4 -6
View File
@@ -3,7 +3,7 @@
[![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/forgejo/status.svg)](https://build.coopcloud.tech/coop-cloud/forgejo) [![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/forgejo/status.svg)](https://build.coopcloud.tech/coop-cloud/forgejo)
<!-- metadata --> <!-- metadata -->
* **Maintainer**: [@p4u1](https://git.coopcloud.tech/p4u1), [@fauno](https://git.coopcloud.tech/fauno) * **Maintainer**: [@fauno](https://git.coopcloud.tech/fauno)
* **Category**: Development * **Category**: Development
* **Status**: 5 * **Status**: 5
* **Image**: [`forgejo/forgejo`](https://codeberg.org/forgejo/-/packages/container/forgejo/13-rootless), 4, upstream * **Image**: [`forgejo/forgejo`](https://codeberg.org/forgejo/-/packages/container/forgejo/13-rootless), 4, upstream
@@ -52,15 +52,13 @@ abra app deploy YOURTRAEFIKAPP
``` ```
You might need to wait a bit. To check if it worked, you can run You might need to wait a bit. To check if it worked, you can run
``` ```
telnet my.gitea.example.com 2222 telnet my.forgejo.example.com 2222
``` ```
Once you have added a public SSH key, you can check that you can connect to your gitea server with Once you have added a public SSH key, you can check that you can connect to your Forgejo server with
``` ```
ssh -T -p 2222 git@my.gitea.example.com ssh -T -p 2222 git@my.forgejo.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 ## Protect Forgejo from scrapers with Anubis
Uncomment the Anubis compose file from the `.env` file and re-deploy the Uncomment the Anubis compose file from the `.env` file and re-deploy the
+4 -3
View File
@@ -87,9 +87,10 @@ DOMAIN = {{ env "GITEA_DOMAIN" }}
LANDING_PAGE = {{ env "GITEA_LANDING_PAGE" }} LANDING_PAGE = {{ env "GITEA_LANDING_PAGE" }}
ROOT_URL = https://%(DOMAIN)s/ ROOT_URL = https://%(DOMAIN)s/
SSH_DOMAIN = {{ env "GITEA_DOMAIN" }} SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }} SSH_LISTEN_PORT = 2222
SSH_PORT = {{ env "GITEA_SSH_PORT" }} SSH_PORT = 2222
START_SSH_SERVER = true START_SSH_SERVER = {{ env "GITEA_SSH_ENABLED" }}
DISABLE_SSH = {{ if eq (env "GITEA_SSH_ENABLED") "true" }}false{{ else }}true{{ end }}
LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }} LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }}
LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }} LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
+11
View File
@@ -0,0 +1,11 @@
---
version: "3.8"
services:
app:
environment:
- GITEA_SSH_ENABLED=true
deploy:
labels:
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
+3 -6
View File
@@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: codeberg.org/forgejo/forgejo:15.0.5-rootless image: codeberg.org/forgejo/forgejo:15.0.7-rootless
configs: configs:
- source: app_ini - source: app_ini
target: /var/lib/gitea/custom/conf/app.ini target: /var/lib/gitea/custom/conf/app.ini
@@ -26,7 +26,7 @@ services:
- GITEA_ENABLE_OPENID_SIGNIN - GITEA_ENABLE_OPENID_SIGNIN
- GITEA_ENABLE_OPENID_SIGNUP - GITEA_ENABLE_OPENID_SIGNUP
- GITEA_SMTP_MAILER_ENABLED - GITEA_SMTP_MAILER_ENABLED
- GITEA_SSH_PORT - GITEA_SSH_ENABLED=false
- GITEA_DISABLE_GRAVATAR - GITEA_DISABLE_GRAVATAR
- GITEA_ENABLE_FEDERATED_AVATAR - GITEA_ENABLE_FEDERATED_AVATAR
- GITEA_REGISTER_EMAIL_CONFIRM - GITEA_REGISTER_EMAIL_CONFIRM
@@ -81,16 +81,13 @@ services:
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors" - "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.accesscontrolallowmethods=GET,OPTIONS,PUT"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowheaders=content-type,authorization" - "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.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100" - "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true" - "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
- coop-cloud.${STACK_NAME}.version=5.4.0+15.0.2-rootless - coop-cloud.${STACK_NAME}.version=5.6.1+15.0.7-rootless
networks: networks: