1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-03-30 15:03:46 +00:00
parent 2828cef769
commit a83edc4042
No known key found for this signature in database
11 changed files with 73 additions and 149 deletions

View file

@ -1,23 +1,22 @@
# {config, ...}: let
# virtualHostName = "";
# in {
# services.headscale = {
# enable = true;
# address = "127.0.0.1";
# port = 8070;
# server_url = "https://${virtualHostName}";
# settings = {
# logtail.enabled = false;
# };
# };
#
# services.nginx.virtualHosts.${virtualHostName} = {
# forceSSL = true;
# enableACME = true;
# locations."/" = {
# proxyPass = "http://localhost:${toString config.services.headscale.port}";
# proxyWebsockets = true;
# };
# };
# }
{}
{config, ...}: let
virtualHostName = "headscale.helveticanonstandard.net";
in {
services.headscale = {
enable = true;
address = "127.0.0.1";
port = 8010;
server_url = "https://${virtualHostName}";
settings = {
logtail.enabled = false;
};
};
services.nginx.virtualHosts.${virtualHostName} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${builtins.toString config.services.headscale.port}";
proxyWebsockets = true;
};
};
}