Nginx reverse proxy passthrough basic auth

* Set the proxy header to passthrough authentication header

Change-Id: I05f2800ff27dd363219b359c0d053adf22033103
This commit is contained in:
siraj.yasin 2021-05-25 18:34:35 +00:00 committed by Sirajudeen
parent 5b15aa6f44
commit b9965761e8
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ server {
server_name localhost;
location / {
proxy_pass http://localhost:5000/;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
# Basic Auth
limit_except OPTIONS {