commit 695c9e81e3ca9bff12ece003bd9258449a088596
parent ca4947ba3902b6dce477b81c1306a0898fb9ed5e
Author: Katja (ctucx) <git@ctu.cx>
Date: Sat, 4 Jan 2025 16:55:13 +0100
parent ca4947ba3902b6dce477b81c1306a0898fb9ed5e
Author: Katja (ctucx) <git@ctu.cx>
Date: Sat, 4 Jan 2025 16:55:13 +0100
machines/trabbi/gotosocial: add masto-fe-standalone client
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/machines/trabbi/gotosocial.nix b/machines/trabbi/gotosocial.nix @@ -5,7 +5,9 @@ let in { - dns.zones."zuggeschmack.de" = (pkgs.dns.lib.combinators.host config.networking.primaryIP4 config.networking.primaryIP); + dns.zones."zuggeschmack.de" = (pkgs.dns.lib.combinators.host config.networking.primaryIP4 config.networking.primaryIP) // { + subdomains."client".CNAME = [ "${config.networking.fqdn}." ]; + }; age.secrets = { restic-gotosocial.file = ./. + "/../../secrets/${config.networking.hostName}/restic/gotosocial.age"; @@ -129,4 +131,14 @@ in { }; + services.nginx.virtualHosts."client.zuggeschmack.de" = { + enableACME = true; + forceSSL = true; + kTLS = true; + root = pkgs.masto-fe-standalone; + extraConfig = '' + try_files $uri $uri/ /index.html; + ''; + }; + }