From b9a46ffe80f5d83389baf410d2a993caf210cc26 Mon Sep 17 00:00:00 2001 From: Weckyy702 <7jlpiyc9@gmail.com> Date: Fri, 23 Oct 2026 16:47:06 +0000 Subject: [PATCH] 2026-10-23T16:47:06+00:00 --- 00-caddy/config/Caddyfile | 24 +++++++++++----------- 01-headscale/config/acl.json | 34 -------------------------------- 01-headscale/config/config.yaml | 6 +++--- 04-headplane/.gitignore | 1 + 04-headplane/docker-compose.yaml | 20 +++++++++++++++++++ docker-compose.yaml | 1 + 6 files changed, 38 insertions(+), 48 deletions(-) delete mode 100644 01-headscale/config/acl.json create mode 100644 04-headplane/.gitignore create mode 100644 04-headplane/docker-compose.yaml diff --git a/00-caddy/config/Caddyfile b/00-caddy/config/Caddyfile index 5481cf3..c57e3a6 100644 --- a/00-caddy/config/Caddyfile +++ b/00-caddy/config/Caddyfile @@ -19,6 +19,17 @@ vpn.veltko.de { reverse_proxy * http://headscale:8080 } +headplane.veltko.de { + tls { + client_auth { + mode require_and_verify + trust_pool file /data/custom_certs/ca.crt + } + } + + reverse_proxy http://headplane:3000 +} + copyparty.veltko.de { reverse_proxy * http://copyparty:3923 } @@ -42,17 +53,9 @@ git.veltko.de { reverse_proxy http://10.10.0.135:30008 } -cloud.veltko.de { - reverse_proxy https://10.10.0.135:30259 { - transport http { - #FIXME: this should really be replaced by a proper cert :( - tls_insecure_skip_verify - } - } -} -docs.veltko.de { - reverse_proxy http://10.10.0.135:9980 +split.veltko.de { + reverse_proxy http://10.10.0.135:30420 } vaultwarden.veltko.de { @@ -70,4 +73,3 @@ vaultwarden.veltko.de { } } } - diff --git a/01-headscale/config/acl.json b/01-headscale/config/acl.json deleted file mode 100644 index e47dbc5..0000000 --- a/01-headscale/config/acl.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "tagOwners": { - "tag:ferris": ["weckyy702@"] - }, - - "hosts": { - "duke.veltnet": "10.10.0.135/32", - "homenet": "10.10.0.0/16", - "homenet6": "fd55:6f39:8ba5::/60" - }, - - "acls": [ - /*Untagged devices have access to everything*/ - { - "action": "accept", - "src": ["autogroup:member"], - "dst": [ - "autogroup:internet:*", - "autogroup:member:*", - "autogroup:tagged:*", - "homenet:*", - "homenet6:*" - ] - }, - /*Ferris can only access the services hosted on duke*/ - { - "action": "accept", - "src": ["tag:ferris"], - "dst": [ - "duke.veltnet:*" - ] - } - ] -} diff --git a/01-headscale/config/config.yaml b/01-headscale/config/config.yaml index 21857d9..b256bc7 100644 --- a/01-headscale/config/config.yaml +++ b/01-headscale/config/config.yaml @@ -10,7 +10,7 @@ # # https://myheadscale.example.com:443 # -server_url: https://vpn.veltko.de +server_url: "https://vpn.veltko.de" # Address to listen to / bind to on the server # @@ -29,7 +29,7 @@ listen_addr: 0.0.0.0:8080 # valid certificates. # # For production: -# grpc_listen_addr: 0.0.0.0:50443 +#grpc_listen_addr: 0.0.0.0:50443 #grpc_listen_addr: 127.0.0.1:50443 # Allow the gRPC admin interface to run in INSECURE @@ -240,7 +240,7 @@ log: policy: # The mode can be "file" or "database" that defines # where the ACL policies are stored and read from. - mode: file + mode: database # If the mode is set to "file", the path to a # HuJSON file containing ACL policies. path: "/etc/headscale/acl.json" diff --git a/04-headplane/.gitignore b/04-headplane/.gitignore new file mode 100644 index 0000000..f733c4b --- /dev/null +++ b/04-headplane/.gitignore @@ -0,0 +1 @@ +config/ diff --git a/04-headplane/docker-compose.yaml b/04-headplane/docker-compose.yaml new file mode 100644 index 0000000..d19de0d --- /dev/null +++ b/04-headplane/docker-compose.yaml @@ -0,0 +1,20 @@ +services: + headplane: + image: "ghcr.io/tale/headplane:latest@sha256:7bd6523a14567a43eb4ffa1e95e3d95456b8539c9d081757df3f228b9e836fb5" + container_name: headplane + restart: unless-stopped + volumes: + - "./config:/etc/headplane:ro" + - "./data:/var/lib/headplane" + - "../01-headscale/config:/etc/headscale" + networks: + nw-caddy: + depends_on: + caddy: + condition: service_healthy + healthcheck: + test: ["CMD", "/bin/hp_healthcheck"] + interval: 30s + timeout: 5s + start_period: 5s + retries: 3 diff --git a/docker-compose.yaml b/docker-compose.yaml index 7769297..86f98d3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,6 +3,7 @@ include: - 01-headscale/docker-compose.yaml - 02-copyparty/docker-compose.yaml - 03-uptime_kuma/docker-compose.yaml + - 04-headplane/docker-compose.yaml networks: nw-caddy: