-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgres_pass Inheritance in nested locations #28
Comments
@msva Will you provide a patch? |
I'm afraid, no 😞 At least, not now... I'm almost not familiar with NginX API (not more than it needs for maintain a package and port some patches from old versions). I tried to fix it myself in the way like it already done in rds_json module (where rds_json directive inherits to the nested locations just fine):
but I still can't get it to work 😕 I also noticed, that postgress_output inherits fine too, but I can't realize the thing (except it provides a filter, just like rds_json) that makes them (with rds_json directive) works, while do not work for postgress_pass. Maybe you can advice me, if I missed something else? 😇 |
By the way, I found strange thing. 358 if ((conf->upstream.upstream == NULL) && (conf->upstream_cv == NULL)) {
359 conf->upstream.upstream = prev->upstream.upstream;
360 conf->upstream_cv = prev->upstream_cv;
361 } And as I looked in // by the way, it'd be nice to also allow _pass on |
Hello there!
I think, it would be great to make default behaviour to inherit postgres_pass setting from top-level location to it's nested locations.
For example, I assume that to work fine, instead of throwing 404:
Thanks a lot!
The text was updated successfully, but these errors were encountered: