Add gitea service
This commit is contained in:
parent
2df8a6892c
commit
4689a153b9
2 changed files with 48 additions and 1 deletions
configuration
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
imports = [ ./services/gitea.nix ];
|
||||
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
|
@ -44,6 +44,15 @@
|
|||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
clientMaxBodySize = "10G";
|
||||
|
||||
virtualHosts = let
|
||||
host = port: extra:
|
||||
{
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = { proxyPass = "http://localhost:${toString port}"; };
|
||||
} // extra;
|
||||
in { "gitea.tlater.net" = host 3000 { }; };
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue