-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
0.9.0 conf does not seem to recognize pg_host
#1543
Comments
Could you provide the full debug output? |
|
@plukevdh if you are using Docker, please set the docker run ... -e "KONG_PG_HOST=1.1.1.1" |
@thefosk Why does it not retrieve it from the config? @thibaultcha full dump looks like this repeating:
|
Ah, may be this:
Are these defaults built into the |
Seems like a bad idea to set those as defaults and ignore the config if set... Is this documented anywhere? |
Environment variables do override the configuration file's properties (yes, this is documented pretty much everywhere). I had no idea the docker image was setting those defaults. It probably shouldn't, and only propose a configuration file, and let users override some settings with their own environment variables instead. |
That makes sense. Would be nice if these defaults were dropped. Do you want me to close this issue or leave open for action regarding the unexpected defaults from the image? |
The Docker image for 0.9 allows to override those values by specifying your own |
A better behavior maybe would be to still provide those default values but in a config file. This way, if someone specifies its own file, those values are not overridden by "invisible" environment variables. |
I have updated the 0.9 image to now set those values by default @thibaultcha @plukevdh You need to pull the image again. |
🤘 thanks much |
Summary
Trying to start a new Kong instance with a PG backend on 0.9.0 with the following conf file (all commented lines removed:
Starting up with the
-vv
flag shows the following:Steps To Reproduce
Reusable repo exhibiting this behavior can be found here
Additional Details & Logs
0.9.0
The text was updated successfully, but these errors were encountered: