Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions charts/artifacts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ image:

## repository on the registry to pull from.
##
repository: scality/artifacts
repository: scality/artifacts/artifacts

## tag specifies the version to deploy.

## tag specifies the version to deploy.
##
tag: 4.2.13
tag: e4353ee49de6d0ec3c3e3b7b0cd1d16cadf8730c

## pullPolicy specifies the image pull policy
##
Expand Down
16 changes: 15 additions & 1 deletion conf/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,21 @@ http {

# Handle "/builds/" location to keep backward compatibility with the
# previous artifacts implementations.
#
# CLI clients (curl, wget, aria2c — no "Mozilla" in User-Agent) fetching
# a file are internally rewritten to /redirect/ so they receive a presigned
# URL and download directly from S3. Browser clients keep the original
# proxied-through-nginx behaviour (/download/).
# Directory listings (trailing slash) always go to /download/.
#
set $builds_backend "/download/";
if ($http_user_agent !~* "Mozilla") {
set $builds_backend "/redirect/";
}
# HEAD requests are metadata checks, not downloads: always proxy directly.
if ($request_method = "HEAD") {
set $builds_backend "/download/";
}
rewrite ^/builds/([^/]+/.+[^/])$ $builds_backend$1 last;
rewrite ^/builds/(.*)$ /download/$1 last;

# Handle subdir listing under "/redirect/"
Expand Down