helm/hosts/ao/modules/gitea.nix
Henrik Lissner 68fa845a73 Add comments & remove redundant config
IS_TLS_ENABLED = true is implied if HOST's port is 465
2021-01-31 18:20:17 -05:00

32 lines
729 B
Nix

{ 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;
root = "/srv/www/git.v0.io";
locations."/".proxyPass = "http://127.0.0.1:3000";
};
}