Files
michaelschiemer/deployment/gitea-runner/config.yaml
Michael Schiemer af98069eba fix: Reduce Gitea runner request frequency to prevent DDoS-like behavior
- Increase fetch_interval from 2s to 10s to reduce load on Gitea
- Increase fetch_timeout from 5s to 30s for better error handling
- Add documentation about runner overloading Gitea and how to fix it
- Prevents 504 errors caused by runner bombarding Gitea with requests
2025-11-08 17:56:11 +01:00

78 lines
1.6 KiB
YAML

# Gitea Actions Runner Configuration
# https://docs.gitea.io/en-us/actions/act-runner/
log:
level: info
runner:
# File to store runner registration information
file: /data/.runner
# Maximum number of concurrent jobs
capacity: 1
# Timeout for a single job (increased for long-running deployments)
timeout: 6h
# Whether to enable debug mode (skip SSL verification for setup)
insecure: true
# Timeout for fetching job from Gitea
fetch_timeout: 30s
# Interval for fetching jobs (increased to reduce load on Gitea)
# Lower values cause DDoS-like behavior when Gitea is slow or overloaded
fetch_interval: 10s
cache:
# Enable cache server
enabled: true
# Cache server directory
dir: /data/cache
# Host address for cache server
host: ""
# Port for cache server
port: 0
container:
# Docker network mode for job containers
network: bridge
# Privileged mode for job containers
privileged: false
# Container options
options: ""
# Working directory in container
workdir_parent: /workspace
# Force pull images before running jobs
force_pull: false
# Default image if not specified in workflow
default_image: node:16-bullseye
# Docker host (use docker-dind without TLS since it's in isolated network)
docker_host: tcp://docker-dind:2375
# Valid volume paths that can be mounted
valid_volumes:
- /workspace
- /data
# Resources limits
resources:
memory_limit: 0
memory_swap_limit: 0
cpu_quota: 0
cpu_period: 0
cpu_set: ""
host:
# Working directory on host
workdir_parent: /tmp/gitea-runner