added headscale to lambda

This commit is contained in:
Julien Malka 2023-05-20 21:42:29 +02:00
parent 157bc51a05
commit 408efad841
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -38,7 +38,7 @@
enable = true; enable = true;
package = pkgs.unstable.ntfy-sh; package = pkgs.unstable.ntfy-sh;
settings = { settings = {
listen-http = ":8080"; listen-http = ":8081";
behind-proxy = true; behind-proxy = true;
upstream-base-url = "https://ntfy.sh"; upstream-base-url = "https://ntfy.sh";
base-url = "https://notifications.julienmalka.me"; base-url = "https://notifications.julienmalka.me";
@ -71,12 +71,12 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:8080"; proxyPass = "http://localhost:8081";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
networking.nameservers = [ "100.100.45.5" "9.9.9.9" ]; networking.nameservers = [ "9.9.9.9" ];
environment.etc."resolv.conf" = with lib; with pkgs; { environment.etc."resolv.conf" = with lib; with pkgs; {
source = writeText "resolv.conf" '' source = writeText "resolv.conf" ''
${concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)} ${concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)}