You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
I'm new to openResty and my question might appear trivial, but nevertheless I need some advice on this issue I'm experiencing with the "postgres_set" directive:
As soon as I define a variable whose value is set by "postgres_set" directive within two completely separate locations of my nginx.conf , I receive an error from nginx.
nginx: [emerg] the duplicate "VAR" variable .....
Opposite to postgres_set using set $var 1 doesn't cause any errors.
What is the scope of a variable defined using postgres_set within a location?
This error is expected, at least in the current version of ngx_postgres module: you can't set the same variable name in the same server, or even in different servers.
Dear all,
I'm new to openResty and my question might appear trivial, but nevertheless I need some advice on this issue I'm experiencing with the "postgres_set" directive:
As soon as I define a variable whose value is set by "postgres_set" directive within two completely separate locations of my nginx.conf , I receive an error from nginx.
Opposite to postgres_set using set $var 1 doesn't cause any errors.
What is the scope of a variable defined using postgres_set within a location?
Thanks in advance
nginx version: openresty/1.19.9.1
OS: cat /etc/debian_version 10.11
Here is my nginx.conf file:
The text was updated successfully, but these errors were encountered: