copy nb configuration and modules
This commit is contained in:
parent
1af70a3095
commit
127eab91d5
114 changed files with 9070 additions and 0 deletions
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue