mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
Added forgejo git server
This commit is contained in:
parent
6decc0627b
commit
982a0a2138
3 changed files with 32 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
(import ./modules/nginx.nix)
|
||||
(import ./modules/nextcloud.nix)
|
||||
(import ./modules/msmtp.nix)
|
||||
(import ./modules/forgejo.nix)
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
25
hosts/Alaska/modules/forgejo.nix
Normal file
25
hosts/Alaska/modules/forgejo.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -36,6 +36,12 @@
|
|||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
|
||||
"git.nickiel.net" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:3001";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue