mirror of
https://github.com/kou029w/fogtype.com
synced 2025-01-18 08:05:02 +00:00
ACLs
This commit is contained in:
parent
376fa01400
commit
8ec1d7eefc
3 changed files with 20 additions and 0 deletions
|
@ -82,6 +82,8 @@ services:
|
|||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:9200:9200"
|
||||
environment:
|
||||
HEADSCALE_EXPERIMENTAL_FEATURE_SSH: "1"
|
||||
volumes:
|
||||
- ./etc/headscale:/etc/headscale
|
||||
- headscale_data:/var/lib/headscale
|
||||
|
|
17
etc/headscale/acls.json
Normal file
17
etc/headscale/acls.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"acls": [
|
||||
{
|
||||
"action": "accept",
|
||||
"src": ["*"],
|
||||
"dst": ["*:*"]
|
||||
}
|
||||
],
|
||||
"ssh": [
|
||||
{
|
||||
"action": "accept",
|
||||
"src": ["autogroup:members"],
|
||||
"dst": ["autogroup:self"],
|
||||
"users": ["root", "autogroup:nonroot"]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
server_url: https://net.fogtype.com
|
||||
listen_addr: 0.0.0.0:8080
|
||||
metrics_listen_addr: 0.0.0.0:9200
|
||||
acl_policy_path: /etc/headscale/acls.json
|
||||
db_type: sqlite3
|
||||
db_path: /var/lib/headscale/db.sqlite
|
||||
private_key_path: /var/lib/headscale/private.key
|
||||
|
|
Loading…
Add table
Reference in a new issue