copy nb configuration and modules
This commit is contained in:
25
utils/modules/gitea.nix
Normal file
25
utils/modules/gitea.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user