summaryrefslogtreecommitdiff
path: root/examples/witryna.toml
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2026-01-22 22:07:32 +0100
committerDawid Rycerz <dawid@rycerz.xyz>2026-02-10 18:44:26 +0100
commit064a1d01c5c14f5ecc032fa9b8346a4a88b893f6 (patch)
treea2023f9ccd297ed8a41a3a0cc5699c2add09244d /examples/witryna.toml
witryna 0.1.0 — initial releasev0.1.0
Minimalist Git-based static site deployment orchestrator. Webhook-triggered builds in Podman/Docker containers with atomic symlink publishing, SIGHUP hot-reload, and zero-downtime deploys. See README.md for usage, CHANGELOG.md for details.
Diffstat (limited to 'examples/witryna.toml')
-rw-r--r--examples/witryna.toml63
1 files changed, 63 insertions, 0 deletions
diff --git a/examples/witryna.toml b/examples/witryna.toml
new file mode 100644
index 0000000..6256d63
--- /dev/null
+++ b/examples/witryna.toml
@@ -0,0 +1,63 @@
+# /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
+