1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-18 08:05:02 +00:00
This commit is contained in:
Nebel 2023-05-05 23:33:03 +09:00
parent 376fa01400
commit 8ec1d7eefc
Signed by: nebel
GPG key ID: 79807D08C6EF6460
3 changed files with 20 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,17 @@
{
"acls": [
{
"action": "accept",
"src": ["*"],
"dst": ["*:*"]
}
],
"ssh": [
{
"action": "accept",
"src": ["autogroup:members"],
"dst": ["autogroup:self"],
"users": ["root", "autogroup:nonroot"]
}
]
}

View file

@ -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