diff --git a/ChangeLog b/ChangeLog index 42c89d3..1c74142 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 06/19/2024 - add NGINX macros/functions for setting claim variables in the request context see OpenIDC/ngx_oauth2_module#7; thanks @@smanolache and @pladen +- allow NGINX primitives in an if block within a location block in the http block - bump to 1.6.3dev . 06/05/2024 diff --git a/include/oauth2/nginx.h b/include/oauth2/nginx.h index f0ae345..9fabd94 100644 --- a/include/oauth2/nginx.h +++ b/include/oauth2/nginx.h @@ -113,7 +113,7 @@ #define OAUTH2_NGINX_CMD(take, module, directive, primitive) \ { \ ngx_string(directive), \ - NGX_HTTP_LOC_CONF | NGX_CONF_TAKE##take, \ + NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE##take, \ ngx_##module##_set_##primitive, NGX_HTTP_LOC_CONF_OFFSET, \ 0, NULL \ }