feat: add guest tag to headscale acl
This commit is contained in:
parent
46f9d4328b
commit
dd3a615c53
1 changed files with 30 additions and 12 deletions
|
@ -19,27 +19,45 @@ in
|
||||||
name = "headscale-acl.hujson";
|
name = "headscale-acl.hujson";
|
||||||
text = builtins.toJSON {
|
text = builtins.toJSON {
|
||||||
acls = [
|
acls = [
|
||||||
(mkAcl [ "tag:client" ] [
|
(mkAcl
|
||||||
"tag:client:*"
|
[ "tag:client" ]
|
||||||
"tag:server:*"
|
[
|
||||||
]) # client -> {client, server}
|
"tag:client:*"
|
||||||
(mkAcl [
|
"tag:server:*"
|
||||||
"tag:client"
|
]
|
||||||
"tag:server"
|
) # client -> {client, server}
|
||||||
] [ "tag:backup:${toString options.modules.server.rsync-daemon.port.default}" ])
|
|
||||||
|
(mkAcl
|
||||||
|
[
|
||||||
|
"tag:client"
|
||||||
|
"tag:server"
|
||||||
|
]
|
||||||
|
[ "tag:backup:${toString options.modules.server.rsync-daemon.port.default}" ]
|
||||||
|
)
|
||||||
|
|
||||||
|
(mkAcl
|
||||||
|
[
|
||||||
|
"tag:guest"
|
||||||
|
]
|
||||||
|
[ "paperless.ccnlc.eu:443" "immich.ccnlc.eu:443" ]
|
||||||
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
ssh = [
|
ssh = [
|
||||||
(mkSshAcl [ "tag:client" ] [
|
(mkSshAcl [ "tag:client" ]
|
||||||
"tag:server"
|
[
|
||||||
"tag:client"
|
"tag:server"
|
||||||
] [ "ny" ]) # client -> {client, server}
|
"tag:client"
|
||||||
|
]
|
||||||
|
[ "ny" ]
|
||||||
|
) # client -> {client, server}
|
||||||
];
|
];
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"tag:client"
|
"tag:client"
|
||||||
"tag:server"
|
"tag:server"
|
||||||
"tag:backup"
|
"tag:backup"
|
||||||
|
"tag:guest"
|
||||||
];
|
];
|
||||||
|
|
||||||
tagOwners =
|
tagOwners =
|
||||||
|
|
Loading…
Add table
Reference in a new issue