From 543a2f9dc3d8f62cd35ac864391c7751de9376fa Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 6 May 2023 00:01:41 +0900 Subject: [PATCH] Revert "ACLs" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8ec1d7eefcb7a20ee9e3343204c910067bcefd41. 実験的な機能で危険なのでやめておく。 --- compose.yml | 2 -- etc/headscale/acls.json | 17 ----------------- etc/headscale/config.yaml | 1 - 3 files changed, 20 deletions(-) delete mode 100644 etc/headscale/acls.json diff --git a/compose.yml b/compose.yml index 1a2de8c..6c1cac5 100644 --- a/compose.yml +++ b/compose.yml @@ -82,8 +82,6 @@ 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 diff --git a/etc/headscale/acls.json b/etc/headscale/acls.json deleted file mode 100644 index 5169ed6..0000000 --- a/etc/headscale/acls.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "acls": [ - { - "action": "accept", - "src": ["*"], - "dst": ["*:*"] - } - ], - "ssh": [ - { - "action": "accept", - "src": ["autogroup:members"], - "dst": ["autogroup:self"], - "users": ["root", "autogroup:nonroot"] - } - ] -} diff --git a/etc/headscale/config.yaml b/etc/headscale/config.yaml index cdcb553..804ec86 100644 --- a/etc/headscale/config.yaml +++ b/etc/headscale/config.yaml @@ -1,7 +1,6 @@ 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