Skip to content

Commit

Permalink
feat: reverse proxy nix-cache-info for better end user experience (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum authored Jun 7, 2023
1 parent 72d732a commit 184cfc2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/repos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,17 +398,16 @@ pub fn nix_intel(
);
}

if task.path.starts_with("nar/") {
if task.path.starts_with("nar/") || task.path.ends_with(".narinfo") {
Ok(task
.resolve(&intel_mission, &config)
.await?
.reverse_proxy(&intel_mission)
.await?
.into())
} else if task.path.ends_with(".narinfo") {
} else if task.path == "nix-cache-info" {
Ok(task
.resolve(&intel_mission, &config)
.await?
.resolve_upstream()
.reverse_proxy(&intel_mission)
.await?
.into())
Expand Down

0 comments on commit 184cfc2

Please sign in to comment.