From 34fae224e8460419ae8ef0fe32a12e3d362142b8 Mon Sep 17 00:00:00 2001 From: polwex Date: Mon, 23 Jun 2025 06:54:50 +0700 Subject: m --- hosts/cloud/sortug/gitea.nix | 10 ++++++---- hosts/cloud/sortug/nginx.nix | 7 +++---- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'hosts/cloud/sortug') diff --git a/hosts/cloud/sortug/gitea.nix b/hosts/cloud/sortug/gitea.nix index f86ab5d..05f304c 100644 --- a/hosts/cloud/sortug/gitea.nix +++ b/hosts/cloud/sortug/gitea.nix @@ -26,11 +26,13 @@ adminPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICbdwmBis6Ss6xuDFvIsBE4foQfYECgl0pR60sIzLNtV"; }; services.cgit.y = { - # user = "gitolite"; enable = true; - extraConfig = '' - robots=noindex - ''; + user = "gitolite"; + group = "gitolite"; + # extraConfig = '' + # robots=noindex, nofollow + # logo=/var/lib/sortug-logo.png + # ''; scanPath = "/var/lib/gitolite/repositories"; nginx = { virtualHost = "git.sortug.com"; diff --git a/hosts/cloud/sortug/nginx.nix b/hosts/cloud/sortug/nginx.nix index 5c129fb..86bc03e 100644 --- a/hosts/cloud/sortug/nginx.nix +++ b/hosts/cloud/sortug/nginx.nix @@ -16,12 +16,11 @@ # root = "/home/y/www"; }; virtualHosts."git.sortug.com" = { + # basicAuth = {yuanshikai = "seegit";}; + proxyPass = "http://127.0.0.1:3000"; + proxyWebsockets = true; # needed if you need to use WebSocket enableACME = true; forceSSL = true; - locations."/" = { - proxyPass = "http://127.0.0.1:3000"; - proxyWebsockets = true; # needed if you need to use WebSocket - }; }; virtualHosts."ai.sortug.com" = { enableACME = true; -- cgit v1.2.3