Skip to content

Commit

Permalink
set/pass variable from API to auth service
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Sep 10, 2023
1 parent 89bcf68 commit 36df78c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
proxy_pass http://minio:9000;
}
location /oapi {
set $x_api_http_method $request_method;
auth_request /auth;
auth_request_set $auth_status $upstream_status;
proxy_pass http://wis2box-api:80;
add_header X-api-http-method $request_method 'always';
}
location / {
proxy_pass http://wis2box-ui:80;
Expand All @@ -71,8 +71,8 @@
location /auth {
internal;
proxy_pass http://wis2box-auth:80/authorize;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-api-http-method $x_api_http_method;
proxy_set_header X-Original-URI $request_uri;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
Expand Down

0 comments on commit 36df78c

Please sign in to comment.