Compare commits

..
Author SHA1 Message Date
fauno 2c192e9f13 Merge branch 'renovate/codeberg.org-forgejo-forgejo-17.x' of https://git.coopcloud.tech/coop-cloud/forgejo into produccion 2026-11-23 17:40:34 -03:00
fauno bb47746e47 Merge branch 'access-log' into produccion 2026-11-10 16:53:02 -03:00
fauno 9b3afbecf4 feat: access log file 2026-11-10 16:52:24 -03:00
fauno 6381c9b624 Merge remote-tracking branch 'origin/renovate/codeberg.org-forgejo-forgejo-17.x' into produccion 2026-10-27 10:20:35 -03:00
fauno 784987a7d3 Merge branch 'main' into produccion 2026-10-27 10:20:12 -03:00
fauno a6e333dc07 fix: produccion 2026-10-16 09:39:21 -03:00
fauno 724fb33097 Merge branch 'renovate/codeberg.org-forgejo-forgejo-17.x' of https://git.coopcloud.tech/coop-cloud/forgejo into produccion 2026-10-16 09:21:30 -03:00
fauno 5a0f726bad Merge branch 'renovate/codeberg.org-forgejo-forgejo-15.x' of https://git.coopcloud.tech/coop-cloud/forgejo into produccion 2026-10-13 09:40:13 -03:00
fauno 7a08e33adb Merge branch 'access-logs' into produccion 2026-09-25 11:08:20 -03:00
fauno 84702e4819 feat: access logs 2026-09-25 11:07:53 -03:00
fauno 91c1f571ce Merge branch 'main' into produccion 2026-09-14 11:19:21 -03:00
fauno 12d374997c Merge branch 'main' into produccion 2026-07-30 19:43:24 -03:00
fauno 826b116c4b Merge branch 'main' into produccion 2026-07-22 16:42:14 -03:00
fauno 18f6d14c3d Merge branch 'ssh-optional' into produccion 2026-06-29 16:12:28 -03:00
fauno 9ac1a5fcd9 fix: disable ssh 2026-06-29 16:11:43 -03:00
fauno 6a10d71402 Merge branch 'ssh-optional' into produccion 2026-06-29 14:33:41 -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
fauno c884826b0a Merge branch 'metrics' into produccion 2026-06-16 22:58:35 -03:00
fauno 8cec92c042 Merge branch 'metrics' into produccion 2026-06-12 13:23:06 -03:00
fauno 7f44cab6c9 Merge branch 'renovate/codeberg.org-forgejo-forgejo-15.x' into produccion 2026-06-12 13:13:31 -03:00
fauno 461784c151 Merge branch 'metrics' into produccion 2026-06-12 13:04:01 -03:00
fauno c216bba0ab Merge branch 'metrics' into produccion 2026-06-12 13:01:08 -03:00
renovate-bot dbae7db490 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.3 2026-06-10 07:06:37 +00:00
fauno 66ebc75a59 Merge branch 'main' into produccion 2026-06-05 10:55:15 -03:00
fauno c734a15897 Merge branch 'session' into produccion 2026-05-20 10:29:30 -03:00
fauno c8b1ccf5ba Merge branch 'shutdown' into produccion 2026-05-19 10:44:04 -03:00
fauno 9a741faa0c fix: prevent anubis from redirecting the health check 2026-05-18 10:03:19 -03:00
fauno bd330ed0b5 Merge branch 'signing' into produccion 2026-05-16 20:11:06 -03:00
fauno de61429a3d Merge branch 'caching' into produccion 2026-05-15 17:01:10 -03:00
fauno 5337637cb2 Merge branch 'session' into produccion 2026-05-15 16:39:55 -03:00
fauno 40dc068a23 Merge branch 'main' into produccion 2026-05-14 10:03:01 -03:00
fauno cbc43eddbc Merge branch 'signing' into produccion 2026-05-13 14:11:45 -03:00
fauno b926ad8111 feat: sign commits 2026-05-13 14:10:35 -03:00
fauno d5a826c87d Merge branch 's3' into gallinero 2026-05-06 14:45:29 -03:00
fauno 9daa7de95a Merge branch 's3' into gallinero 2026-05-06 14:43:18 -03:00
fauno cd6b9a3ca8 Merge branch 's3' into gallinero 2026-05-06 14:39:23 -03:00
fauno 6d62a06408 Merge branch 'renovate/codeberg.org-forgejo-forgejo-15.x' into gallinero 2026-05-06 14:39:19 -03:00
6 changed files with 39 additions and 19 deletions
+5 -2
View File
@@ -51,8 +51,8 @@ GITEA_REPO_UPLOAD_MAX_FILES=5
GITEA_MAILER_FROM=noreply@example.com
GITEA_MAILER_USER=noreply@example.com
GITEA_SSH_PORT=2222
GITEA_SSH_ENABLED=1
# SSH Support
COMPOSE_FILE="$COMPOSE_FILE:compose.ssh.yml"
SECRET_INTERNAL_TOKEN_VERSION=v1 # length=105
SECRET_DB_PASSWORD_VERSION=v1
@@ -111,3 +111,6 @@ GITEA_STORAGE_TYPE=local
# FORGEJO_METRICS_ENABLED_ISSUE_BY_REPOSITORY=false
# SECRET_FORGEJO_METRICS_TOKEN_VERSION=v1
# COMPOSE_FILE="$COMPOSE_FILE:compose.metrics.yml"
# Enable access logs. See Access logs on Traefik.
#ACCESS_LOGS=true
+3 -5
View File
@@ -52,15 +52,13 @@ abra app deploy YOURTRAEFIKAPP
```
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
Uncomment the Anubis compose file from the `.env` file and re-deploy the
+2 -2
View File
@@ -1,5 +1,5 @@
export APP_INI_VERSION=v28
export DOCKER_SETUP_SH_VERSION=v2
export APP_INI_VERSION=v34
export DOCKER_SETUP_SH_VERSION=v3
export PG_BACKUP_VERSION=v1
abra_backup_app() {
+11 -4
View File
@@ -87,9 +87,10 @@ DOMAIN = {{ env "GITEA_DOMAIN" }}
LANDING_PAGE = {{ env "GITEA_LANDING_PAGE" }}
ROOT_URL = https://%(DOMAIN)s/
SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
SSH_PORT = {{ env "GITEA_SSH_PORT" }}
START_SSH_SERVER = true
SSH_LISTEN_PORT = 2222
SSH_PORT = 2222
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_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
@@ -135,9 +136,15 @@ IS_INPUT_FILE = false
[log]
MODE=console
LEVEL=WARN
LEVEL=DEBUG
STACKTRACE_LEVEL=None
ENABLE_XORM_LOG=false
LOGGER_ACCESS_MODE = access-file
[log.access-file]
MODE=file
LEVEL=Debug
FILE_NAME=access.log
[session]
PROVIDER = {{ env "GITEA_SESSION_PROVIDER" }}
+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}"
+7 -6
View File
@@ -3,6 +3,7 @@ version: "3.8"
services:
app:
#image: git.sutty.abyaya.la/containers/forgejo:15.0.8-rootless
image: codeberg.org/forgejo/forgejo:17.0.2-rootless
configs:
- source: app_ini
@@ -15,6 +16,7 @@ services:
- jwt_secret
- secret_key
- lfs_jwt_secret
entrypoint: "/usr/bin/dumb-init -- /usr/local/bin/docker-entrypoint.sh"
environment:
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
- GITEA_ALLOW_ONLY_INTERNAL_REGISTRATION
@@ -26,7 +28,7 @@ services:
- GITEA_ENABLE_OPENID_SIGNIN
- GITEA_ENABLE_OPENID_SIGNUP
- GITEA_SMTP_MAILER_ENABLED
- GITEA_SSH_PORT
- GITEA_SSH_ENABLED=false
- GITEA_DISABLE_GRAVATAR
- GITEA_ENABLE_FEDERATED_AVATAR
- GITEA_REGISTER_EMAIL_CONFIRM
@@ -65,7 +67,7 @@ services:
- proxy
- internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
test: ["CMD", "curl", "--user-agent=healthcheck", "-f", "http://localhost:3000/api/healthz"]
interval: 30s
timeout: 10s
retries: 10
@@ -81,16 +83,15 @@ services:
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
- "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}.observability.accesslogs=${ACCESS_LOGS:-false}"
- "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=6.0.3+17.0.2-rootless
- "traefik.http.middlewares.${STACK_NAME}-buffering.buffering.maxRequestBodyBytes=0"
- coop-cloud.${STACK_NAME}.version=6.0.2+17.0.1-rootless
networks: