forked from M-Labs/nix-scripts
parent
fa68c48d01
commit
1f5487f9e6
|
@ -113,14 +113,10 @@ ACTION=="add", SUBSYSTEM=="tty", \
|
||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
services.gitlab = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "gitlab.m-labs.hk";
|
httpPort = 3001;
|
||||||
port = 443;
|
rootUrl = "https://git.m-labs.hk/";
|
||||||
https = true;
|
|
||||||
databasePassword = pkgs.lib.fileContents /etc/nixos/secret/gitlab-db-password;
|
|
||||||
secrets = import /etc/nixos/secret/gitlab.nix;
|
|
||||||
initialRootPassword = pkgs.lib.fileContents /etc/nixos/secret/gitlab-default-root;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
@ -142,10 +138,10 @@ ACTION=="add", SUBSYSTEM=="tty", \
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:3000";
|
locations."/".proxyPass = "http://127.0.0.1:3000";
|
||||||
};
|
};
|
||||||
"gitlab.m-labs.hk" = {
|
"git.m-labs.hk" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
|
locations."/".proxyPass = "http://127.0.0.1:3001";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue