krebs buildbot: start nginx by default

This commit is contained in:
lassulus 2017-07-22 14:52:51 +02:00
parent 0aced47982
commit 248d405f61

View File

@ -11,18 +11,21 @@ let
in { in {
# due to the fact that we actually build stuff on the box via the daemon, # due to the fact that we actually build stuff on the box via the daemon,
# /nix/store should be cleaned up automatically as well # /nix/store should be cleaned up automatically as well
services.nginx.virtualHosts.build = { services.nginx = {
serverAliases = [ "build.${hostname}.r" ]; enable = true;
locations."/".extraConfig = '' virtualHosts.build = {
proxy_set_header Upgrade $http_upgrade; serverAliases = [ "build.${hostname}.r" ];
proxy_set_header Connection "upgrade"; locations."/".extraConfig = ''
proxy_pass http://127.0.0.1:${toString config.krebs.buildbot.master.web.port}; proxy_set_header Upgrade $http_upgrade;
''; proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:${toString config.krebs.buildbot.master.web.port};
'';
};
}; };
nix.gc.automatic = true; nix.gc.automatic = true;
nix.gc.dates = "05:23"; nix.gc.dates = "05:23";
networking.firewall.allowedTCPPorts = [ 8010 9989 ]; networking.firewall.allowedTCPPorts = [ 80 8010 9989 ];
krebs.buildbot.master = let krebs.buildbot.master = let
stockholm-mirror-url = "http://cgit.${hostname}.r/stockholm" ; stockholm-mirror-url = "http://cgit.${hostname}.r/stockholm" ;
in { in {