enable forgejo

This commit is contained in:
Noa Aarts 2025-10-16 18:03:08 +02:00
parent 3d1aea0ac3
commit 62391d2453
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 28 additions and 24 deletions

View file

@ -340,35 +340,29 @@
admins = [ "itepastra" ]; admins = [ "itepastra" ];
extraSettingsFile = config.age.secrets."factorio/solrunners".path; extraSettingsFile = config.age.secrets."factorio/solrunners".path;
}; };
github-runners = {
flurry-runner = {
enable = true;
extraPackages = with pkgs; [
nodejs
curl
];
name = "flurry-runner";
replace = true;
tokenFile = config.age.secrets."secrets/token-flurry".path;
url = "https://github.com/itepastra/flurry";
};
anstml-runner = {
enable = true;
extraPackages = with pkgs; [
nodejs
curl
];
name = "anstml-runner";
replace = true;
tokenFile = config.age.secrets."secrets/token-anstml".path;
url = "https://github.com/itepastra/anstml";
};
};
openssh = { openssh = {
enable = true; enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false; settings.KbdInteractiveAuthentication = false;
}; };
forgejo = {
enable = true;
settings = {
server = {
DOMAIN = "geenit.nl";
HTTP_PORT = 2929;
};
DEFAULT = {
APP_NAME = "Solgit";
APP_SLOGAN = "Git of da runners";
RUN_MODE = "dev";
};
};
database = {
type = "postgres";
};
};
radicale = { radicale = {
enable = true; enable = true;
settings = { settings = {

View file

@ -72,6 +72,16 @@ in
# home-assistant proxy # home-assistant proxy
"home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123"; "home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123";
"geenit.nl" = {
forceSSL = true;
enableACME = true;
extraConfig = extra;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:2929/";
};
};
}) })
(lib.mkIf (import ./toggles.nix).enableFlurry { (lib.mkIf (import ./toggles.nix).enableFlurry {
"flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000"; "flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000";