Skip to content

Commit

Permalink
now we allow postgres_pass and postgres_query be used in location if …
Browse files Browse the repository at this point in the history
…blocks.
  • Loading branch information
agentzh committed Nov 1, 2010
1 parent 3476990 commit 7ca3440
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ngx_postgres_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,22 @@ static ngx_command_t ngx_postgres_module_commands[] = {
NULL },

{ ngx_string("postgres_pass"),
NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_TAKE1,
ngx_postgres_conf_pass,
NGX_HTTP_LOC_CONF_OFFSET,
0,
NULL },

{ ngx_string("postgres_query"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE,
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|
NGX_HTTP_LIF_CONF|NGX_CONF_1MORE,
ngx_postgres_conf_query,
NGX_HTTP_LOC_CONF_OFFSET,
0,
NULL },

{ ngx_string("postgres_rewrite"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_2MORE,
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_2MORE,
ngx_postgres_conf_rewrite,
NGX_HTTP_LOC_CONF_OFFSET,
0,
Expand Down

0 comments on commit 7ca3440

Please sign in to comment.