Self-host your own digital island

headscale nginx refactor

Changed files
+10 -8
modules
+10 -8
modules/headscale.nix
···
};
};
-
services.nginx.enable = true;
-
services.nginx.virtualHosts.${cfg.headscale.domain} = {
-
forceSSL = true;
-
enableACME = true;
-
locations."/" = {
-
proxyPass = with config.services.headscale;
-
"http://${address}:${toString port}";
-
proxyWebsockets = true;
+
services.nginx = {
+
enable = true;
+
virtualHosts.${cfg.headscale.domain} = {
+
forceSSL = true;
+
enableACME = true;
+
locations."/" = {
+
proxyPass = with config.services.headscale;
+
"http://${address}:${toString port}";
+
proxyWebsockets = true;
+
};
};
};