setup gitea

master
root 2020-09-20 19:12:37 +00:00
parent 214500ee63
commit 7e02579e34
2 changed files with 21 additions and 0 deletions

View File

@ -14,6 +14,7 @@
./openldap.nix
./syncthing.nix
./fail2ban.nix
./git.nix
];
# Boot

20
git.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
let
fqdn = "git.bib3.de";
in
{
services.nginx = {
enable = true;
virtualHosts.${fqdn} = {
forceSSL = true;
enableACME=true;
locations."/".proxyPass = "http://127.0.0.1:3000";
};
};
services.gitea = {
enable = true;
httpAddress = "127.0.0.1";
};
}