
pantsel/konga.
The application also supports some of the most popular databases out of the box:
In order to use them, set the appropriate env vars in your .env file.
$ npm start
Konga GUI will be available at http://localhost:1337
In case of MySQL or PostgresSQL adapters, Konga will not perform db migrations when running in production mode.
You can manually perform the migrations by calling $ node ./bin/konga.js prepare
, passing the args needed for the database connectivity.
For example:
$ node ./bin/konga.js prepare --adapter postgres --uri postgresql://localhost:5432/konga
The process will exit after all migrations are completed.
Finally:
$ npm run production
Konga GUI will be available at http://localhost:1337
The following instructions assume that you have a running Kong instance following the instructions from Kong's docker hub
$ docker pull pantsel/konga $ docker run -p 1337:1337 \ --network {{kong-network}} \ // optional --name konga \ -e "NODE_ENV=production" \ // or "development" | defaults to 'development' -e "TOKEN_SECRET={{somerandomstring}}" \ pantsel/konga
Prepare the database
Note: You can skip this step if using the
mongoadapter.
You can prepare the database using an ephemeral container that runs the prepare command.
Args
| argument | description | default |
|---|---|---|
| -c | command | - |
| -a | adapter (can be postgres or mysql) | - |
| -u | full database connection url | - |
$ docker run --rm pantsel/konga:latest -c prepare -a {{adapter}} -u {{connection-uri}}
Start Konga
$ docker run -p 1337:1337 --network {{kong-network}} \ // optional -e "TOKEN_SECRET={{somerandomstring}}" \ -e "DB_ADAPTER=the-name-of-the-adapter" \ // 'mongo','postgres','sqlserver' or 'mysql' -e "DB_HOST=your-db-hostname" \ -e "DB_PORT=your-db-port" \ // Defaults to the default db port -e "DB_USER=your-db-user" \ // Omit if not relevant -e "DB_PASSWORD=your-db-password" \ // Omit if not relevant -e "DB_DATABASE=your-db-name" \ // Defaults to 'konga_database' -e "DB_PG_SCHEMA=my-schema"\ // Optionally define a schema when integrating with prostgres -e "NODE_ENV=production" \ // or 'development' | defaults to 'development' --name konga \ pantsel/konga // Alternatively you can use the full connection string to connect to a database $ docker run -p 1337:1337 --network {{kong-network}} \ // optional -e "TOKEN_SECRET={{somerandomstring}}" \ -e "DB_ADAPTER=the-name-of-the-adapter" \ // 'mongo','postgres','sqlserver' or 'mysql' -e "DB_URI=full-connection-uri" \ -e "NODE_ENV=production" \ // or 'development' | defaults to 'development' --name konga \ pantsel/konga
The GUI will be available at http://{your server's public ip}:1337
It is possible to seed default users on first install.
You may also configure Konga to authenticate via LDAP.
In some cases a newer version of Konga may introduce changes in database schemas. The only thing you need to do is to start Konga in dev mode once so that the migrations will be applied. Then stop the app and run it again in production mode.
if you're using docker, you can lift an ephemeral container, as stated before:
$ docker run --rm pantsel/konga:latest -c prepare -a {{adapter}} -u {{connection-uri}}
1. Getting blank page with Uncaught ReferenceError: angular is not defined
In some cases when running npm install, the bower dependencies are not installed properly.
You will need to cd into your project's root directory and install them manually by typing
$ npm run bower-deps
2. Can't add/edit some plugin properties.
When a plugin property is an array, the input is handled by a chip component.
You will need to press enter after every value you type in
so that the component assigns it to an array index.
See issue #48 for reference.
3. EACCES permission denied, mkdir '/kongadata/'.
If you see this error while trying to run Konga, it means that konga has no write permissions to
it's default data dir /kongadata. You will just have to define the storage path yourself to
a directory Konga will have access permissions via the env var STORAGE_PATH.
4. The hook grunt is taking too long to load
The default timeout for the sails hooks to load is 60000. In some cases, depending on
the memory the host machine has available, startup tasks like code minification and uglyfication
may take longer to complete. You can fix that by setting then env var KONGA_HOOK_TIMEOUT to something
greater than 60000, like ***.
Panagis Tselentis
The MIT License (MIT) ===================== THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.




manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务