Skip to content

Commit

Permalink
fix apko and melange redirects (#1685)
Browse files Browse the repository at this point in the history
this PR is an attempt to fix the redirects for apko and melange docs,
since they are no longer in Academy, and will be maintained in-repo.
  • Loading branch information
erikaheidi authored Jul 10, 2024
1 parent e927473 commit 3451b40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ http {
"~^/chainguard/chainctl/chainctl-docs/(index.html|index.xml)?$" /chainguard/chainctl/;
"~^/chainguard/chainguard-enforce/chainguard-enforce-kubernetes/(index.html|index.xml)?$" /chainguard/chainguard-enforce/enforce-overview/;
"~^/chainguard/chainguard-enforce/chainguard-enforce-kubernetes/chainguard-enforce-policy-examples(.+)?$" /chainguard/chainguard-enforce/policies/chainguard-enforce-policy-examples$1;
"~^/open-source/build-tools/apko" https://github.com/chainguard-dev/apko;
"~^/open-source/build-tools/melange" https://github.com/chainguard-dev/melange;
"~^/chainguard/chainguard-enforce/sboms/sboms-and-attestations/(.+)?$" /open-source/sbom/sboms-and-attestations/;
"~^/chainguard/chainguard-images/images-compared/(.+)?$" /chainguard/chainguard-images/vuln-comparison/;
"~^/software-security/secure-software-development/considerations-for-image-updates/(.+)?$" /chainguard/chainguard-images/considerations-for-image-updates/;
Expand Down Expand Up @@ -121,6 +119,14 @@ http {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=300";
}

location ~ ^/open-source/build-tools/apko/ {
rewrite ^ https://github.com/chainguard-dev/apko redirect;
}

location ~ ^/open-source/build-tools/melange/ {
rewrite ^ https://github.com/chainguard-dev/melange redirect;
}

# use hugo's built in 404 page for now
error_page 404 /404.html;

Expand Down

0 comments on commit 3451b40

Please sign in to comment.