Add forgejo
This commit is contained in:
parent
8afb236c52
commit
0e4a2c5b9d
|
@ -7,6 +7,7 @@
|
|||
./services/factorio.nix
|
||||
./services/http/index.nix
|
||||
./services/monitoring.nix
|
||||
./services/forgejo.nix
|
||||
];
|
||||
|
||||
# Bootloader
|
||||
|
|
19
bert/services/forgejo.nix
Normal file
19
bert/services/forgejo.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DEFAULT = {
|
||||
APP_NAME = "Forgejo: Beyond coding. We Forge."; # TODO
|
||||
};
|
||||
server = {
|
||||
# USE_PROXY_PROTOCOL = true;
|
||||
DOMAIN = "git.chandlerswift.com";
|
||||
#SSH_DOMAIN = "git.chandlerswift.com";
|
||||
ROOT_URL = "https://git.chandlerswift.com/";
|
||||
HTTP_PORT = 3001;
|
||||
LANDING_PAGE = "/chandlerswift";
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
}
|
5
bert/services/http/git.chandlerswift.com.nix
Normal file
5
bert/services/http/git.chandlerswift.com.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{config, ...}: {
|
||||
services.caddy.virtualHosts."git.chandlerswift.com".extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
||||
'';
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./files.chandlerswift.com.nix
|
||||
./git.chandlerswift.com.nix
|
||||
./home.chandlerswift.com.nix
|
||||
./maps.chandlerswift.com.nix
|
||||
./stjohnscccc.org.nix
|
||||
|
|
Loading…
Reference in a new issue