anomalizer/ngx_aws_auth

enabled variable is not merged in location configuration

laharikommi1 opened this issue · 0 comments

I configured 'aws_sign' in my server block and I'm getting a 403 error since the ngx_http_aws_proxy_sign function is returning NGX_DECLINED since conf->enabled is 0.

When I move the 'aws_sign' configuration to the location block, the request is being sent sucessfully.

Upon further debugging, I found that the enabled variable from server block is not being merged to the location configuration.

The directive declaration has 'NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF'.
Can anyone help me understand why the ngx_http_aws_auth_merge_loc_conf() function is not merging conf->enabled ?