copy nb configuration and modules

This commit is contained in:
2023-07-12 16:13:10 +02:00
parent 1af70a3095
commit 127eab91d5
114 changed files with 9070 additions and 0 deletions

25
utils/modules/gitea.nix Normal file
View File

@@ -0,0 +1,25 @@
{ config, ... }:
let
domain = "git.cloonar.com";
in
{
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3001/";
};
};
services.gitea = {
enable = true;
appName = "Cloonar Gitea server"; # Give the site a name
domain = domain;
rootUrl = "https://${domain}/";
httpPort = 3001;
settings = {
service.DISABLE_REGISTRATION = true;
webhook.ALLOWED_HOST_LIST = "drone.cloonar.com";
};
};
}