@@ -46,7 +46,7 @@ postgres_pass
46
46
-------------
47
47
* ** syntax** : ` postgres_pass upstream `
48
48
* ** default** : ` none `
49
- * ** context** : ` location `
49
+ * ** context** : ` location ` , ` if location `
50
50
51
51
Set name of an upstream block that will be used for the database connections
52
52
(it can include variables).
@@ -56,7 +56,7 @@ postgres_query
56
56
--------------
57
57
* ** syntax** : ` postgres_query [methods] query `
58
58
* ** default** : ` none `
59
- * ** context** : ` http ` , ` server ` , ` location `
59
+ * ** context** : ` http ` , ` server ` , ` location ` , ` if location `
60
60
61
61
Set query string (it can include variables). When methods are specified then
62
62
query is used only for them, otherwise it's used for all methods.
@@ -68,7 +68,7 @@ postgres_rewrite
68
68
----------------
69
69
* ** syntax** : ` postgres_rewrite [methods] condition [=]status_code `
70
70
* ** default** : ` none `
71
- * ** context** : ` http ` , ` server ` , ` location `
71
+ * ** context** : ` http ` , ` server ` , ` location ` , ` if location `
72
72
73
73
Rewrite response ` status_code ` when given condition is met (first one wins!):
74
74
@@ -90,7 +90,7 @@ postgres_output
90
90
---------------
91
91
* ** syntax** : ` postgres_output none|value|row|rds [row] [column] `
92
92
* ** default** : ` rds `
93
- * ** context** : ` http ` , ` server ` , ` location `
93
+ * ** context** : ` http ` , ` server ` , ` location ` , ` if location `
94
94
95
95
Set output format:
96
96
0 commit comments