add gitea config

This commit is contained in:
Dmitriy Kholkin 2021-11-20 01:47:59 +03:00
parent 111c4d065d
commit ee790d39c2
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,26 @@
{ pkgs, config, lib, ... }:
{
secrets.gitea = {
owner = "gitea";
};
services.gitea = {
enable = true;
appName = "AtaraxiaDev Gitea Instance";
cookieSecure = true;
database = {
type = "postgres";
passwordFile = config.secrets.gitea.decrypted;
};
disableRegistration = true;
domain = "code.ataraxiadev.com";
httpPort = 6000;
lfs.enable = true;
rootUrl = "https://code.ataraxiadev.com";
settings = {
server = {
SSH_DOMAIN = "gitea.ataraxiadev.com";
};
};
};
}

View File

@ -109,6 +109,11 @@
proxyPass = "http://localhost:13748"; proxyPass = "http://localhost:13748";
}; };
} // default; } // default;
"code.ataraxiadev.com" = {
locations."/" = {
proxyPass = "http://localhost:6000";
};
} // default;
}; };
}; };
} }

View File

@ -10,6 +10,7 @@
kitty kitty
coturn coturn
gitea
mailserver mailserver
matrix-synapse matrix-synapse
nginx nginx