Nginx reverse proxy passthrough basic auth
* Set the proxy header to passthrough authentication header Change-Id: I05f2800ff27dd363219b359c0d053adf22033103
This commit is contained in:
parent
5b15aa6f44
commit
b9965761e8
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user