diff --git a/hosts/tahani/default.nix b/hosts/tahani/default.nix index 3f47463..99dfe85 100644 --- a/hosts/tahani/default.nix +++ b/hosts/tahani/default.nix @@ -100,12 +100,25 @@ enable = true; settings = { server = { - DOMAIN = "git.tahani"; + ROOT_URL = "https://gitea.manticore-hippocampus.ts.net"; + # DOMAIN = "gitea.manticore-hippocampus.ts.net"; HTTP_PORT = 8380; }; }; }; + services.caddy = { + enable = true; + virtualHosts."tahani.manticore-hippocampus.ts.net".extraConfig = '' + respond "OK" + ''; + virtualHosts."gitea.manticore-hippocampus.ts.net".extraConfig = '' + handle { + reverse_proxy localhost:8380 + } + ''; + }; + home-manager.users.${user} = { programs.git.settings.user.email = "christoph@schmatzler.com"; };