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";
|
||||
text = builtins.toJSON {
|
||||
acls = [
|
||||
(mkAcl [ "tag:client" ] [
|
||||
"tag:client:*"
|
||||
"tag:server:*"
|
||||
]) # client -> {client, server}
|
||||
(mkAcl [
|
||||
"tag:client"
|
||||
"tag:server"
|
||||
] [ "tag:backup:${toString options.modules.server.rsync-daemon.port.default}" ])
|
||||
(mkAcl
|
||||
[ "tag:client" ]
|
||||
[
|
||||
"tag:client:*"
|
||||
"tag:server:*"
|
||||
]
|
||||
) # client -> {client, server}
|
||||
|
||||
(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 = [
|
||||
(mkSshAcl [ "tag:client" ] [
|
||||
"tag:server"
|
||||
"tag:client"
|
||||
] [ "ny" ]) # client -> {client, server}
|
||||
(mkSshAcl [ "tag:client" ]
|
||||
[
|
||||
"tag:server"
|
||||
"tag:client"
|
||||
]
|
||||
[ "ny" ]
|
||||
) # client -> {client, server}
|
||||
];
|
||||
|
||||
tags = [
|
||||
"tag:client"
|
||||
"tag:server"
|
||||
"tag:backup"
|
||||
"tag:guest"
|
||||
];
|
||||
|
||||
tagOwners =
|
||||
|
|
Loading…
Add table
Reference in a new issue