From 774214d585386cff666ffd68e881d391f88c51e9 Mon Sep 17 00:00:00 2001 From: Benjamin Wenzel Date: Thu, 13 Jun 2024 20:57:38 +0000 Subject: [PATCH] Tweak doc example of haproxy config --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9854543..43050dc 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,15 @@ frontend you-name-it # if this is too invasive for your use case, be more specific http-request del-header ^X-Forwarded.* - # circumvent oauth2 proxy for programmatic access + # use case: artifact download from /repository via UI + use_backend be_oauth2-proxy if { req.cook(_oauth2_proxy) -m found } + + # use case: programmatic access, circumvent oauth2 proxy acl is_basic_auth hdr_beg(Authorization) -i basic acl is_repo_req path_beg /repository/ - use_backend nexus if is_basic_auth OR is_repo_req + use_backend be_nexus if is_basic_auth OR is_repo_req + # use case: interactive access via browser default_backend oauth2-proxy