From b2cce1cd70dc033c73cf3de3dcfc5f62a510af19 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 13 Apr 2022 11:46:05 -0700 Subject: nginx: get a simple solution to work first --- modules/services/gitea/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/services/gitea/default.nix') diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index 6828439..6259c30 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -37,10 +37,14 @@ in { }; }; - my.services.nginx.virtualHosts = [{ - subdomain = "gitea"; - port = 8002; - }]; + services.nginx.virtualHosts."git.fcuny.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8002"; + proxyWebsockets = true; + }; + }; my.services.backup = { paths = [ cfg.stateDir ]; }; }; -- cgit 1.4.1