Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

homebrew-tap
Clone

Read only, no credentials:

https://rodent.software/homebrew-tap.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/homebrew-tap.git

Homebrew tap for Rodent Software.

Code

9 commit(s) on main

update readme Keenan Nemetz · 3d ago c55615f1
history blame raw 2.1 KiB
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
3 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4<!--
5 Machine-wide Vole service that owns ports 80 and 443 for automatic HTTPS.
6
7 launchd opens the two sockets as root and hands their descriptors to `vole
8 serve`, which runs as the unprivileged _vole account. The Sockets dict below
9 is the socket-activation contract: the entries arrive as inherited descriptors
10 in the order listed (HTTP first, then HTTPS), the same two-fd contract `vole
11 serve` reads under systemd's LISTEN_FDS.
12
13 Install it at /Library/LaunchDaemons/software.rodent.vole.plist, after
14 creating the _vole account and /opt/homebrew/etc/vole/vole.toml with:
15 https_addr = ":443"
16 http_addr = ":80"
17 and an acme_email / acme_domains. Load it with:
18 sudo launchctl bootstrap system /Library/LaunchDaemons/software.rodent.vole.plist
19
20 On an Intel Mac the prefix is /usr/local instead of /opt/homebrew.
21-->
22<plist version="1.0">
23<dict>
24 <key>Label</key>
25 <string>software.rodent.vole</string>
26
27 <key>ProgramArguments</key>
28 <array>
29 <string>/opt/homebrew/bin/vole</string>
30 <string>serve</string>
31 <string>--config</string>
32 <string>/opt/homebrew/etc/vole/vole.toml</string>
33 </array>
34
35 <key>UserName</key>
36 <string>_vole</string>
37 <key>GroupName</key>
38 <string>_vole</string>
39
40 <key>Sockets</key>
41 <dict>
42 <!-- HTTP, the entry serve reads first for the challenge + redirect listener. -->
43 <key>Listeners</key>
44 <dict>
45 <key>SockServiceName</key>
46 <string>http</string>
47 <key>SockType</key>
48 <string>stream</string>
49 </dict>
50 <!-- HTTPS, the entry serve reads second for the TLS listener. -->
51 <key>Https</key>
52 <dict>
53 <key>SockServiceName</key>
54 <string>https</string>
55 <key>SockType</key>
56 <string>stream</string>
57 </dict>
58 </dict>
59
60 <key>RunAtLoad</key>
61 <true/>
62 <key>KeepAlive</key>
63 <true/>
64
65 <key>StandardOutPath</key>
66 <string>/var/log/vole.log</string>
67 <key>StandardErrorPath</key>
68 <string>/var/log/vole.log</string>
69
70 <key>ThrottleInterval</key>
71 <integer>5</integer>
72</dict>
73</plist>
74