add acl in json
This commit is contained in:
parent
fdd85fb735
commit
b62d5f559b
21
roles/vpn/files/config/acl.json
Normal file
21
roles/vpn/files/config/acl.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"groups": {
|
||||||
|
"group:admin": ["elizabeth.hunt"]
|
||||||
|
},
|
||||||
|
"tagOwners": {
|
||||||
|
"tag:prod": ["group:admin"],
|
||||||
|
"tag:private": ["group:admin"],
|
||||||
|
"tag:dev": ["group:admin"]
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"action": "accept",
|
||||||
|
"src": ["group:admin"],
|
||||||
|
"dst": [
|
||||||
|
"tag:dev:*",
|
||||||
|
"tag:private:*",
|
||||||
|
"tag:prod:*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
groups:
|
|
||||||
admin:
|
|
||||||
- "lizzy"
|
|
@ -26,7 +26,7 @@
|
|||||||
- name: build headscale config template
|
- name: build headscale config template
|
||||||
template:
|
template:
|
||||||
src: ../templates/config.yml.j2
|
src: ../templates/config.yml.j2
|
||||||
dest: /etc/docker/compose/headscale/config.yml
|
dest: /etc/docker/compose/headscale/config/config.yml
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
@ -160,7 +160,7 @@ log:
|
|||||||
# Path to a file containg ACL policies.
|
# Path to a file containg ACL policies.
|
||||||
# ACLs can be defined as YAML or HUJSON.
|
# ACLs can be defined as YAML or HUJSON.
|
||||||
# https://tailscale.com/kb/1018/acls/
|
# https://tailscale.com/kb/1018/acls/
|
||||||
acl_policy_path: "/etc/headscale/acl.yml"
|
acl_policy_path: "/etc/headscale/acl.json"
|
||||||
|
|
||||||
## DNS
|
## DNS
|
||||||
#
|
#
|
||||||
@ -264,8 +264,7 @@ oidc:
|
|||||||
# - admins
|
# - admins
|
||||||
# - people
|
# - people
|
||||||
# Optional.
|
# Optional.
|
||||||
allowed_users:
|
allowed_users: {{ headscale_allowed_users }}
|
||||||
- "{{ headscale_allowed_users }}"
|
|
||||||
|
|
||||||
# If `strip_email_domain` is set to `true`, the domain part of the username email address will be removed.
|
# If `strip_email_domain` is set to `true`, the domain part of the username email address will be removed.
|
||||||
# This will transform `first-name.last-name@example.com` to the user `first-name.last-name`
|
# This will transform `first-name.last-name@example.com` to the user `first-name.last-name`
|
||||||
|
Loading…
Reference in New Issue
Block a user