initial commit
This commit is contained in:
10
configuration/gitea.nix
Normal file
10
configuration/gitea.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
services.gitea.enable = true;
|
||||
security.acme.certs."${config.domainName}".extraDomainNames = [ "git.${config.domainName}" ];
|
||||
services.nginx.virtualHosts."git.${config.domainName}" = {
|
||||
useACMEHost = config.domainName;
|
||||
addSSL = true;
|
||||
locations."/".proxyPass = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user