summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/buildbot-stockholm.nix
blob: 32452e01001274dc61feb2bbde94050aee50f6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ config, lib, ... }:
with import ../../lib/pure.nix { inherit lib; };
{
  networking.firewall.allowedTCPPorts = [ 80 ];
  services.nginx = {
    enable = true;
    virtualHosts.build = {
      serverAliases = [ "build.r" "build.${config.networking.hostName}.r" ];
      locations."/" = {
        proxyPass = "http://127.0.0.1:${toString config.services.buildbot-master.port}";
        proxyWebsockets = true;
        extraConfig = ''
          proxy_read_timeout 3600s;
        '';
      };
    };
  };
  krebs.ci = {
    enable = true;
    repos = {
      disko.urls = [
        "http://cgit.gum.r/disko"
        "http://cgit.ni.r/disko"
        "http://cgit.orange.r/disko"
      ];
      krops.urls = [
        "http://cgit.ni.r/krops"
        "http://cgit.orange.r/krops"
        "https://github.com/krebs/krops.git"
      ];
      nix_writers.urls = [
        "http://cgit.ni.r/nix-writers"
        "http://cgit.orange.r/nix-writers"
      ];
      stockholm.urls = [
        "http://cgit.gum.r/stockholm"
        "http://cgit.ni.r/stockholm"
        "http://cgit.orange.r/stockholm"
      ];
    };
  };
}