Compare commits

..
Author SHA1 Message Date
fauno a7db97f305 feat: control request body sizes 2026-10-03 14:06:03 -03:00
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -10,6 +10,13 @@ COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
# Control request body sizes. If you're having issues uploading big
# files, set this option to 0 or a big number in bytes, and also check
# READ_TIMEOUT in Traefik's recipe.
#
# https://doc.traefik.io/traefik/reference/routing-configuration/http/middlewares/buffering/#opt-memRequestBodyBytes
#MAX_REQUEST_BODY_LIMIT=0
# Anubis
# COMPOSE_FILE="$COMPOSE_FILE:compose.anubis.yml"
@@ -111,6 +118,3 @@ 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
+1 -1
View File
@@ -85,12 +85,12 @@ services:
- "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"
- "traefik.http.middlewares.${STACK_NAME}-buffering.buffering.maxRequestBodyBytes=${MAX_REQUEST_BODY_LIMIT:-0}"
- coop-cloud.${STACK_NAME}.version=5.6.3+15.0.9-rootless