about summary refs log tree commit diff
path: root/modules/services/gitea
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-13 11:46:05 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-13 11:46:05 -0700
commitb2cce1cd70dc033c73cf3de3dcfc5f62a510af19 (patch)
treeffc68154a75bbae75a81f377c29689173381329d /modules/services/gitea
parentnginx: add nginx as a reverse proxy (diff)
downloadworld-b2cce1cd70dc033c73cf3de3dcfc5f62a510af19.tar.gz
nginx: get a simple solution to work first
Diffstat (limited to '')
-rw-r--r--modules/services/gitea/default.nix12
1 files changed, 8 insertions, 4 deletions
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 ]; };
   };