hosts/hydra-1: Server nix cache on cache.nix.clerie.de too
This commit is contained in:
parent
e6371e45d8
commit
199e6e1791
24
hosts/hydra-1/cache.nix.clerie.de/index.txt
Normal file
24
hosts/hydra-1/cache.nix.clerie.de/index.txt
Normal file
@ -0,0 +1,24 @@
|
||||
Nix Cache by clerie
|
||||
|
||||
Public key:
|
||||
|
||||
cache.nix.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g=
|
||||
|
||||
NixOS Configuration:
|
||||
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://cache.nix.clerie.de"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nix.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g="
|
||||
];
|
||||
}
|
||||
|
||||
Try:
|
||||
|
||||
nix build --substituters "https://cache.nix.clerie.de" \
|
||||
--trusted-public-keys "cache.nix.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g=" \
|
||||
"git+https://git.clerie.de/clerie/fieldpoc.git#fieldpoc"
|
||||
|
||||
.-*..*-.
|
@ -13,11 +13,30 @@
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."= /" = {
|
||||
return = ''200 'Nix Cache by clerie\n\nPublic key:\n\n nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g=\n\nNixOS Configuration:\n\n nix.settings = {\n substituters = [\n "https://nix-cache.clerie.de"\n ];\n trusted-public-keys = [\n "nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g="\n ];\n }\n\nTry:\n\n nix build --substituters "https://nix-cache.clerie.de" \\\n --trusted-public-keys "nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g=" \\\n "git+https://git.clerie.de/clerie/fieldpoc.git#fieldpoc"\n\n.-*..*-.' '';
|
||||
index = "/index.txt";
|
||||
};
|
||||
locations."= /index.txt" = {
|
||||
root = ./cache.nix.clerie.de;
|
||||
};
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:5005";
|
||||
extraConfig = ''
|
||||
types { } default_type "text/plain; charset=utf-8";
|
||||
proxy_redirect http:// https://;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
'';
|
||||
};
|
||||
};
|
||||
"cache.nix.clerie.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."= /" = {
|
||||
index = "/index.txt";
|
||||
};
|
||||
locations."= /index.txt" = {
|
||||
root = ./cache.nix.clerie.de;
|
||||
};
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:5005";
|
||||
extraConfig = ''
|
||||
|
Loading…
Reference in New Issue
Block a user