From 9673344b56d9f7d5d743cad987832bf434b95be1 Mon Sep 17 00:00:00 2001 From: k3t Date: Mon, 6 Jul 2026 01:29:28 -0600 Subject: [PATCH] gittea! via nginx! round 2! --- hosts/nixcloud/services.d/git.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/nixcloud/services.d/git.nix b/hosts/nixcloud/services.d/git.nix index c4e280c..589af84 100644 --- a/hosts/nixcloud/services.d/git.nix +++ b/hosts/nixcloud/services.d/git.nix @@ -21,11 +21,17 @@ }; }; }; - services.nginx.virtualHosts."git.k3t.dev".enableACME = true; - services.caddy.virtualHosts."git.k3t.dev".extraConfig = '' - encode zstd gzip - reverse_proxy :${toString config.services.gittea.settinggs.server.HTTP_PORT} { - header_up X-Real-IP {remote_host} - } - ''; + services.nginx.virtualHosts."git.k3t.dev" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = ''http://127.0.0.1:${toString config.services.gittea.settinggs.server.HTTP_PORT}''; + }; + }; + #services.nginx.virtualHosts."git.k3t.dev".extraConfig = '' + # encode zstd gzip + # reverse_proxy :${toString config.services.gittea.settinggs.server.HTTP_PORT} { + # header_up X-Real-IP {remote_host} + # } + #''; } \ No newline at end of file