37 lines
715 B
Nix
37 lines
715 B
Nix
{
|
|
services.gitea = {
|
|
enable = true;
|
|
appName = "Bill's Gitea server, hosted on Linode using NixOS";
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "git.ewanick.com";
|
|
ROOT_URL = "https://git.ewanick.com/";
|
|
HTTP_PORT = 3000;
|
|
};
|
|
service = {
|
|
DISABLE_REGISTRATION = true;
|
|
};
|
|
|
|
git = {
|
|
timeout = {
|
|
MIGRATE = 60 * 100; # seconds, 100 minutes
|
|
MIRROR = 60 * 100;
|
|
PULL = 60 * 100;
|
|
GC = 60 * 100;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"git.ewanick.com" = {
|
|
extraConfig = ''
|
|
reverse_proxy localhost:3000
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|