Skip to content

Commit

Permalink
Merge pull request #5047 from lindseysimple/issue-5038-2
Browse files Browse the repository at this point in the history
fix: Add the /key path to API gateaway
  • Loading branch information
cloudxxx8 authored Jan 10, 2025
2 parents 02e35b0 + 2a92b0a commit 2801c4a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/security-proxy-setup/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ server {
proxy_pass_request_body off;
}
location = /key {
`cat "${corssnippet}"`
resolver 127.0.0.11 valid=30s;
proxy_pass http://\$upstream_proxyauth:59842/api/v3/key;
proxy_method POST;
proxy_redirect off;
proxy_set_header Host \$host;
auth_request /auth;
auth_request_set \$auth_status \$upstream_status;
auth_request_set \$edgex_token \$upstream_http_authorization;
}
# Rewriting rules (variable usage required to avoid nginx crash if host not resolveable at time of boot)
# resolver required to enable name resolution at runtime, points at docker DNS resolver
Expand Down

0 comments on commit 2801c4a

Please sign in to comment.