forge
Explore
Log in

Don't you dare go Hollow

kur

Clone
★ 0

0 watching0 forksRustAGPL-3.073.7 KiB6ae6238Tahinli21 days ago5 commits

kur.example.toml45 lines, 1.5 KiBHistoryRawDownload
1# Example kur config. Install it as ~/.config/kur/kur.toml (mode 0600).
2# Field reference: README.md. Paths may start with ~/, which expands to $HOME/.
3
4# Forge base URL. A trailing slash is fine.
5forge = "https://git.tahinli.com"
6
7# Optional: file holding a forge token for private repos. Read once at start, trimmed.
8# Use a read-only token. Must be mode 0600.
9# token_file = "~/.config/kur/token"
10
11# Optional: where kur keeps .bad and .tag files. Default shown.
12# state_dir = "~/.local/state/kur"
13
14# The im server. Its unit is the user unit im.service, which kur restarts after a swap.
15[[app]]
16name = "im"
17repo = "Tahinli/im"
18# {arch} is replaced by the machine architecture (x86_64, aarch64).
19asset = "im-{arch}-linux"
20path = "~/bin/im"
21unit = "im.service"
22# im has no --version flag, so there is no pre-swap check.
23# health_url must match the listen address in im's config.
24health_url = "http://127.0.0.1:7650/healthz"
25# health_timeout_secs = 30
26# prerelease = false
27
28# kur updates itself. There is no unit: the new binary is swapped in and
29# used from the next timer run on. kur runs `kur --version` on the new build
30# before swapping it in, so a broken build is never installed.
31[[app]]
32name = "kur"
33repo = "Tahinli/kur"
34asset = "kur-{arch}-linux"
35path = "~/bin/kur"
36check = ["--version"]
37
38# A directory served from a release tarball. kur unpacks it into ~/courier.kur-new,
39# swaps it in, and keeps the old one as ~/courier.prev.
40# [[app]]
41# name = "courier"
42# repo = "Tahinli/courier"
43# asset = "courier-web.tar.gz"
44# path = "~/courier"
45# unpack = true