diff --git a/devices/cluster/modules/caddy.nix b/devices/cluster/modules/caddy.nix index 7854c1a..55fc459 100644 --- a/devices/cluster/modules/caddy.nix +++ b/devices/cluster/modules/caddy.nix @@ -37,9 +37,9 @@ in { "nelim.org" = { serverAliases = ["*.nelim.org"]; extraConfig = '' - tls { - dns cloudflare {$CLOUDFLARE_API_TOKEN} - resolvers 1.0.0.1 + tls { + dns cloudflare {$CLOUDFLARE_API_TOKEN} + resolvers 1.0.0.1 } ''; @@ -50,6 +50,16 @@ in { headscale.reverseProxy = "${clusterIP}:8085"; jelly.reverseProxy = "${nosIP}:8097"; + pcsd = { + extraConfig = '' + reverse_proxy https://${clusterIP}:2224 { + transport http { + tls_insecure_skip_verify + } + } + ''; + }; + # Resume builder resume.reverseProxy = "${nosIP}:3060"; resauth.reverseProxy = "${nosIP}:3100"; diff --git a/devices/cluster/modules/pcsd.nix b/devices/cluster/modules/pcsd.nix index eabcb3b..62a2351 100644 --- a/devices/cluster/modules/pcsd.nix +++ b/devices/cluster/modules/pcsd.nix @@ -18,6 +18,7 @@ in { services.pcsd = { enable = true; enableBinaryCache = true; + enableWebUI = true; clusterName = "thingies"; diff --git a/flake.lock b/flake.lock index 555b2c6..424fabd 100644 --- a/flake.lock +++ b/flake.lock @@ -1355,19 +1355,36 @@ "type": "github" } }, + "pcs-web-ui-src": { + "flake": false, + "locked": { + "lastModified": 1706898094, + "narHash": "sha256-MkSYjztQ7AquDCTaCEDNZRLxbqZqHHGjKG0k57j+kr4=", + "owner": "ClusterLabs", + "repo": "pcs-web-ui", + "rev": "726fa9ec0c70e9c3885be4631e1dbc2de9ddec05", + "type": "github" + }, + "original": { + "owner": "ClusterLabs", + "repo": "pcs-web-ui", + "type": "github" + } + }, "pcsd": { "inputs": { "nixpkgs": "nixpkgs_8", "nixpkgs-pacemaker": "nixpkgs-pacemaker", "pcs-src": "pcs-src", + "pcs-web-ui-src": "pcs-web-ui-src", "pyagentx-src": "pyagentx-src" }, "locked": { - "lastModified": 1709792437, - "narHash": "sha256-Ify/2rUQeYnNEo6ZNXb91AiMswBgkNWDqE4qfZyBA5w=", + "lastModified": 1710114520, + "narHash": "sha256-sfZtJDMRg2P3r/m0CPaApwD6AyB4mCI1BlArL5Jndso=", "owner": "matt1432", "repo": "nixos-pcsd", - "rev": "5f457d49a233dd7bb98e91ed6d1040d6e720356d", + "rev": "7e4cd1dd6ad8d0c86f5ecfdf4b09ae8630ad429f", "type": "github" }, "original": {