fuuko/hydra: Show logs after build is completed

pull/52/head
Simon Bruder 2021-05-15 00:01:04 +02:00
parent e10394cd99
commit 531060668a
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,13 @@ in
auth_basic "restricted upload";
auth_basic_user_file ${config.sops.secrets.nix-binary-cache-htpasswd.path};
}
# workaround for nginx dropping parent headers
# see https://github.com/yandex/gixy/blob/master/docs/en/plugins/addheaderredefinition.md
${lib.concatStringsSep "\n" (lib.filter
(lib.hasPrefix "add_header ")
(lib.splitString "\n" config.services.nginx.commonHttpConfig))}
add_header Access-Control-Allow-Origin https://hydra.sbruder.de;
'';
"/nix/store/".proxyPass = "http://localhost:${config.systemd.services.nar-serve.environment.PORT}";
};

View File

@ -25,6 +25,7 @@ in
server_store_uri = file:///data/cache/nix-binary-cache
upload_logs_to_binary_cache = true
log_prefix = https://nix-cache.sbruder.de/
'';
};