Skip to content

Commit

Permalink
Tweak doc example of haproxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
tumbl3w33d committed Jun 13, 2024
1 parent 0ebc4ae commit 774214d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 774214d

Please sign in to comment.