helm/hosts/ao/modules/gitea.nix

32 lines
729 B
Nix
Raw Normal View History

2021-01-20 00:43:03 -08:00
{ config, lib, ... }:
{
modules.services.gitea.enable = true;
services.gitea = {
appName = "V-NOUGHT";
domain = "v0.io";
rootUrl = "https://git.v0.io/";
disableRegistration = false;
settings = {
server.SSH_DOMAIN = "v0.io";
mailer = {
ENABLED = true;
FROM = "mail@v0.io";
HOST = "mail.gmail.com:465";
USER = "hlissner@gmail.com";
MAILER_TYPE = "smtp";
};
};
mailerPasswordFile = config.age.secrets.gitea-smtp.path;
database.type = "sqlite3";
};
services.nginx.virtualHosts."git.v0.io" = {
forceSSL = true;
enableACME = true;
2021-01-30 14:07:52 -08:00
root = "/srv/www/git.v0.io";
2021-01-20 00:43:03 -08:00
locations."/".proxyPass = "http://127.0.0.1:3000";
};
}