e0c0006554
And remove redundant config.
31 lines
697 B
Nix
31 lines
697 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
modules.services.gitea.enable = true;
|
|
|
|
services.gitea = {
|
|
appName = "V-NOUGHT";
|
|
domain = "v0.io";
|
|
rootUrl = "https://git.v0.io/";
|
|
disableRegistration = true;
|
|
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;
|
|
};
|
|
|
|
services.nginx.virtualHosts."git.v0.io" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
root = "/srv/www/git.v0.io";
|
|
locations."/".proxyPass = "http://127.0.0.1:3000";
|
|
};
|
|
}
|