I believe this should be an easy find but for the life of me I cannot find an answer. I am trying to set proxy headers and I have tried the following ways:
location / {
access_by_lua '
ngx.header["ZZZZ"] = zzzzz
proxy_pass http://127.0.0.1:8888;
';
OR
location / {
access_by_lua '
ngx.proxy_set_header["ZZZZ"] = zzzzz
proxy_pass http://127.0.0.1:8888;
';
What is the correct way to set a proxy header.
Thank you stabiuti