Files
2026-07-06 22:48:42 -06:00

37 lines
845 B
Nix

{ config, lib, pkgs, ... }:
{
services.gitea = {
enable = true;
captcha = {
enable = true;
};
database = {
type = "postgres";
};
settings = {
server = {
DISABLE_REGISTRATION = false;
DOMAIN = "git.k3t.dev";
HTTP_ADDR = "127.0.0.1";
HTTP_PORT = 34951;
ROOT_URL = "https://git.k3t.dev/";
};
};
};
services.nginx.virtualHosts."git.k3t.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = ''http://127.0.0.1:${toString config.services.gitea.settings.server.HTTP_PORT}'';
};
};
#services.nginx.virtualHosts."git.k3t.dev".extraConfig = ''
# encode zstd gzip
# reverse_proxy :${toString config.services.gittea.settings.server.HTTP_PORT} {
# header_up X-Real-IP {remote_host}
# }
#'';
}