s 1 wolf: initial preparation of ci packaging
This commit is contained in:
parent
6f150af8ac
commit
55ad05879b
26
makefu/2configs/nginx/euer.test.nix
Normal file
26
makefu/2configs/nginx/euer.test.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
hostname = config.krebs.build.host.name;
|
||||||
|
user = config.services.nginx.user;
|
||||||
|
group = config.services.nginx.group;
|
||||||
|
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
||||||
|
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
||||||
|
in {
|
||||||
|
krebs.nginx = {
|
||||||
|
enable = mkDefault true;
|
||||||
|
servers = {
|
||||||
|
euer-share = {
|
||||||
|
listen = [ ];
|
||||||
|
server-names = [ "share.euer.krebsco.de" ];
|
||||||
|
locations = singleton (nameValuePair "/" ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_pass http://localhost:8000/;
|
||||||
|
'');
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -11,6 +11,7 @@ in
|
||||||
../2configs/collectd-base.nix
|
../2configs/collectd-base.nix
|
||||||
../2configs/shack-nix-cacher.nix
|
../2configs/shack-nix-cacher.nix
|
||||||
../2configs/shack-drivedroid.nix
|
../2configs/shack-drivedroid.nix
|
||||||
|
../2configs/cac-ci.nix
|
||||||
];
|
];
|
||||||
# use your own binary cache, fallback use cache.nixos.org (which is used by
|
# use your own binary cache, fallback use cache.nixos.org (which is used by
|
||||||
# apt-cacher-ng in first place)
|
# apt-cacher-ng in first place)
|
||||||
|
@ -24,7 +25,7 @@ in
|
||||||
}];
|
}];
|
||||||
|
|
||||||
defaultGateway = "10.42.0.1";
|
defaultGateway = "10.42.0.1";
|
||||||
nameservers = [ "8.8.8.8" ];
|
nameservers = [ "10.42.0.100" "10.42.0.200" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
|
|
11
shared/2configs/cac-ci.nix
Normal file
11
shared/2configs/cac-ci.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs;[
|
||||||
|
get
|
||||||
|
cac
|
||||||
|
cacpanel
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user