feat(headscale): add file-based ACL policy
Ship policy.hujson (mounted + installed on first deploy, edits preserved) and wire policy.mode=file / policy.path in config.yaml. Translate the Tailscale "grants" default into headscale's legacy "acls" format (self-access, tag:shared, Tailscale SSH), since headscale 0.28 doesn't support grants. Embed in deploy.sh and document `headscale policy check`.
This commit is contained in:
6 files changed
+167
-64
No files matched your search
@@ -55,6 +55,7 @@ services:
|
||||
- /var/run/headscale
|
||||
volumes:
|
||||
- ./config.yaml:/etc/headscale/config.yaml:ro
|
||||
- ./policy.hujson:/etc/headscale/policy.hujson:ro
|
||||
- headscale-data:/var/lib/headscale
|
||||
healthcheck:
|
||||
test: ["CMD", "headscale", "health"]
|
||||
|
||||
Reference in new issue
Block a user