setup gitea
parent
214500ee63
commit
7e02579e34
|
|
@ -14,6 +14,7 @@
|
||||||
./openldap.nix
|
./openldap.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./fail2ban.nix
|
./fail2ban.nix
|
||||||
|
./git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Boot
|
# Boot
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue