blob: a76e4bb13523207e2d6bc9aa4db3967e0ed09d76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# /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"
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 (runs on success and failure, 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
|