fuuko/hydra: Show logs after build is completed
This commit is contained in:
parent
e10394cd99
commit
531060668a
|
@ -51,6 +51,13 @@ in
|
||||||
auth_basic "restricted upload";
|
auth_basic "restricted upload";
|
||||||
auth_basic_user_file ${config.sops.secrets.nix-binary-cache-htpasswd.path};
|
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}";
|
"/nix/store/".proxyPass = "http://localhost:${config.systemd.services.nar-serve.environment.PORT}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,6 +25,7 @@ in
|
||||||
server_store_uri = file:///data/cache/nix-binary-cache
|
server_store_uri = file:///data/cache/nix-binary-cache
|
||||||
|
|
||||||
upload_logs_to_binary_cache = true
|
upload_logs_to_binary_cache = true
|
||||||
|
log_prefix = https://nix-cache.sbruder.de/
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue