nixos/hosts/architect/gitea.nix

33 lines
773 B
Nix
Raw Normal View History

2021-11-25 11:42:32 +00:00
with import ./network.nix; {
2021-07-07 13:13:19 +01:00
services.gitea = {
2021-11-25 11:42:32 +00:00
enable = true;
database.type = "sqlite3";
domain = "git.giugl.io";
appName = "Gitea";
rootUrl = "https://git.giugl.io";
ssh.clonePort = 10022;
log.level = "Info";
2021-07-07 13:13:19 +01:00
settings.server.START_SSH_SERVER = true;
};
services.nginx.virtualHosts.${gitdomain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3000";
extraConfig = ''
2021-11-25 11:42:32 +00:00
allow 127.0.0.1;
allow 10.0.0.0/24;
allow 10.3.0.0/24;
allow 10.4.0.0/24;
deny all;
'';
2021-07-07 13:13:19 +01:00
};
};
networking.extraHosts = ''
${architect-lan} ${gitdomain}
${architect-wg} ${gitdomain}
'';
}