From ce8b06e8ac724a331969e58ccf74c2e6a6e9adfc Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 1 Jan 2025 02:19:31 +0400 Subject: [PATCH] i think im retarded --- modules/server/services/headscale.nix | 43 +++++++++++++-------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/modules/server/services/headscale.nix b/modules/server/services/headscale.nix index 35f2b40f..c181e20d 100644 --- a/modules/server/services/headscale.nix +++ b/modules/server/services/headscale.nix @@ -74,29 +74,28 @@ in { format = "text"; level = "info"; }; - - services.nginx.virtualHosts."headscale.sako.lol" = { - forceSSL = true; - enableACME = true; - http3 = true; - - locations = { - "/" = { - proxyPass = - "http://localhost:${toString config.services.headscale.port}"; - proxyWebsockets = true; - }; - }; - extraConfig = '' - add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; - ''; - }; - - security.acme.certs."headscale.sako.lol" = { }; - - systemd.services = { tailscaled.after = [ "headscale.service" ]; }; - }; }; + services.nginx.virtualHosts."headscale.sako.lol" = { + forceSSL = true; + enableACME = true; + http3 = true; + + locations = { + "/" = { + proxyPass = + "http://localhost:${toString config.services.headscale.port}"; + proxyWebsockets = true; + }; + }; + extraConfig = '' + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; + ''; + }; + + security.acme.certs."headscale.sako.lol" = { }; + + systemd.services = { tailscaled.after = [ "headscale.service" ]; }; + }; }