summaryrefslogtreecommitdiff
path: root/aphrodite/devops/msci.nix
blob: fd69784180d4623ad345d5201c5bfdd0714674ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{config, ...}: let
  buildDomain = "build.${config.customOps.domain.fqdn}";
in {
  sops.secrets = {
    "msci/sshkey" = {};
    "msci/gpgkey" = {};
    "msci/gpgpwd" = {};
  };
  makeshiftci = {
    enable = true;
    webUI.enable = true;
  };
  services.nginx.virtualHosts.${buildDomain} = {
    forceSSL = true;
    enableACME = true;
    locations."/" = {
      proxyPass = "http://localhost:${builtins.toString config.makeshiftci.webUI.port}";
      extraConfig = ''
        proxy_buffering off;
      '';
    };
  };
}