Added forgejo git server

This commit is contained in:
Nickiel12 2023-05-06 10:12:27 -07:00
parent 6decc0627b
commit 982a0a2138
3 changed files with 32 additions and 0 deletions

View file

@ -8,6 +8,7 @@
(import ./modules/nginx.nix) (import ./modules/nginx.nix)
(import ./modules/nextcloud.nix) (import ./modules/nextcloud.nix)
(import ./modules/msmtp.nix) (import ./modules/msmtp.nix)
(import ./modules/forgejo.nix)
]; ];
environment.systemPackages = [ environment.systemPackages = [

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
services.gitea = {
enable = true;
package = pkgs.forgejo;
stateDir = "/Aurora/Forgejo";
settings = {
#ui.DEFAULT_THEME = "arc-green";
# Enable this after the first user has been created
#service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
# external facing ui
server = {
ROOT_URL = "https://git.nickiel.net";
HTTP_PORT = 3001;
DOMAIN = "git.nickiel.net";
LANDING_PAGE = "/explore/repos";
};
};
};
}

View file

@ -36,6 +36,12 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
}; };
"git.nickiel.net" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://127.0.0.1:3001";
};
}; };
}; };
} }