2016-02-02 22:41:24 +01:00
|
|
|
auth_request_set $headername1 $upstream_http_headername1;
|
|
|
|
auth_request_set $headervalue1 $upstream_http_headervalue1;
|
|
|
|
auth_request_set $headername2 $upstream_http_headername2;
|
|
|
|
auth_request_set $headervalue2 $upstream_http_headervalue2;
|
|
|
|
auth_request_set $headername3 $upstream_http_headername3;
|
|
|
|
auth_request_set $headervalue3 $upstream_http_headervalue3;
|
|
|
|
auth_request_set $headername4 $upstream_http_headername4;
|
|
|
|
auth_request_set $headervalue4 $upstream_http_headervalue4;
|
|
|
|
auth_request_set $headername5 $upstream_http_headername5;
|
|
|
|
auth_request_set $headervalue5 $upstream_http_headervalue5;
|
|
|
|
auth_request_set $headername6 $upstream_http_headername6;
|
|
|
|
auth_request_set $headervalue6 $upstream_http_headervalue6;
|
|
|
|
auth_request_set $headername7 $upstream_http_headername7;
|
|
|
|
auth_request_set $headervalue7 $upstream_http_headervalue7;
|
|
|
|
auth_request_set $headername8 $upstream_http_headername8;
|
|
|
|
auth_request_set $headervalue8 $upstream_http_headervalue8;
|
|
|
|
auth_request_set $headername9 $upstream_http_headername9;
|
|
|
|
auth_request_set $headervalue9 $upstream_http_headervalue9;
|
|
|
|
auth_request_set $headername10 $upstream_http_headername10;
|
|
|
|
auth_request_set $headervalue10 $upstream_http_headervalue10;
|
2016-02-03 07:43:11 +01:00
|
|
|
auth_request_set $lmcookie $upstream_http_cookie;
|
2019-02-01 09:52:28 +01:00
|
|
|
add_header Set-Cookie $lmcookie;
|
2016-02-24 08:26:56 +01:00
|
|
|
access_by_lua '
|
2016-02-02 22:41:24 +01:00
|
|
|
i = 1
|
2016-02-25 10:09:07 +01:00
|
|
|
ngx.req.set_header("Cookie",ngx.var.lmcookie)
|
2016-02-02 22:41:24 +01:00
|
|
|
while true do
|
|
|
|
if ngx.var["headername"..i] ~= nil then
|
|
|
|
ngx.req.set_header(ngx.var["headername"..i],ngx.var["headervalue"..i])
|
|
|
|
else
|
|
|
|
break
|
|
|
|
end
|
|
|
|
i = i +1
|
|
|
|
end
|
2016-02-24 08:26:56 +01:00
|
|
|
';
|
2016-02-02 22:41:24 +01:00
|
|
|
|