# /etc/witryna/witryna.toml — Witryna configuration # See witryna.toml(5) for full documentation. listen_address = "127.0.0.1:8080" container_runtime = "podman" base_dir = "/var/lib/witryna" log_dir = "/var/log/witryna" log_level = "info" rate_limit_per_minute = 10 max_builds_to_keep = 5 # git_timeout = "2m" # default: 60s, range: 5s..1h # [[sites]] # name = "my-site" # repo_url = "https://github.com/user/my-site.git" # branch = "main" # webhook_token = "CHANGE-ME" # # Or use environment variable: webhook_token = "${WITRYNA_TOKEN}" # # Or use file (Docker/K8s secrets): webhook_token_file = "/run/secrets/token" # # Omit webhook_token to disable authentication (e.g., behind VPN) # # # Polling (default: disabled, webhook-only) # # poll_interval = "30m" # min: 60s # # # Build timeout (default: 10m, range: 10s..24h) # # build_timeout = "15m" # # # Git clone depth (default: 1 for shallow, 0 for full history) # # git_depth = 0 # # # Container resource limits # # container_memory = "512m" # # container_cpus = 1.0 # # container_pids_limit = 256 # # container_network = "bridge" # bridge (default) | none | host | slirp4netns # # # Container working directory (for monorepos) # # container_workdir = "packages/frontend" # # # Custom repo config file (default: .witryna.yaml → .witryna.yml → witryna.yaml → witryna.yml) # # config_file = ".witryna.yaml" # # # Cache directories (container paths, persisted across builds) # # cache_dirs = ["/root/.npm"] # # # Build config overrides (all three → witryna.yaml optional) # # image = "node:20-alpine" # # command = "npm ci && npm run build" # # public = "dist" # # # Post-deploy hook (30s timeout, non-fatal) # # post_deploy = ["systemctl", "reload", "nginx"] # # # Caddy auto-configuration (see examples/hooks/caddy-deploy.sh) # # post_deploy = ["/etc/witryna/hooks/caddy-deploy.sh"] # # # Environment variables for builds and hooks # # [sites.env] # # NODE_ENV = "production" # # BASE_DOMAIN = "mywitrynahost.com" # for Caddy hook # # PRIMARY_DOMAIN = "my-site.example.com" # for Caddy hook # # REDIRECT_DOMAINS = "www.my-site.example.com" # for Caddy hook