Kong/homebrew-kong

Where is kong.conf file?

codelabor opened this issue ยท 10 comments

I installed kong like this:

bomber-macbook:~ bomber$ brew install kong
==> Installing kong from mashape/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_fil
Already downloaded: /Users/bomber/Library/Caches/Homebrew/kong-0.11.2.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.11.2 make OPENSSL_DIR=/usr/loca
๐Ÿบ /usr/local/Cellar/kong/0.11.2: 687 files, 4.7MB, built in 2 minutes 6 seconds

And I refer to this document:
https://getkong.org/docs/0.11.x/configuration/#configuration-loading

They say like this:

Configuration loading
Kong comes with a default configuration file that can be found at /etc/kong/kong.conf.default if you installed Kong via one of the official packages. To start configuring Kong, you can copy this file:

$ cp /etc/kong/kong.conf.default /etc/kong/kong.conf

But I can't find kong.conf file.

bomber-macbook:~ bomber$ ls /etc/kong.conf
ls: /etc/kong.conf: No such file or directory
bomber-macbook:~ bomber$ ls /etc/kong/kong.conf
ls: /etc/kong/kong.conf: No such file or directory

Where can I find kong.conf file?
Please update configuration document.
https://getkong.org/docs/0.11.x/configuration/#configuration-loading

Has the problem been solved?

I just installed it, and I'm having the same issue.

I found the file using an AWS AMI image, it was in /etc/kong/kong.config.default but you can easily create one (if not exists kong will use the default values for everything, or what's already in the database)

here's the original kong.config.default file

bradj commented

Still running into this issue.

same issue in macOS, installed by brew

same issue here, 0.13.0 - macOS high sierra, installed via brew

I had the same issue and by a stroke of luck I found the kong.conf.default file once I untarred the /Users/dmuganza/Library/Caches/Homebrew/kong-0.13.1.tar.gz file.

Why not just update the home brew recipe to place the file in /usr/local/etc/? You might need to patch kong to look in this location.

I think this is a doc issue. I submitted PR #1042 in the docs repo to address this.

Kong/docs.konghq.com#1042

coopr commented

Resolved (I believe) by Kong/docs.konghq.com#1042 - if not, please re-open with comments, thanks!