精华内容
下载资源
问答
  • konga

    2019-08-31 16:16:08
    konga access konga konga service access real service kong-kong-proxy service access process notify_service plugins -> Routes -> notity_service_route /sms, /email -> SERVICES -> UPSTR...

    konga

    access konga

    konga service

    access real service

    kong-kong-proxy service

    access process

    notify_service plugins -> Routes -> notity_service_route /sms, /email -> SERVICES -> UPSTREAMS

    1. 网址 --》 域名解析 --> 域名服务器 ip-a
    2. ip-a把请求路径和参数传递给kong
    3. kong解析、分发请求,从后端拿到数据,然后原路返回
    4. 在routes中,通过域名 + path --> 确定 Service
    5. Service 中也有个path默认等于routes中的path, 当然也可以单独设置,表示真实服务的路径
    6. Service 中可能有jwt验证, 验证通过,然后通过host去找Upstreams
    7. upstreams中有多个targets, 可以做负载均衡,设置weight
    8. target 中有内网服务的地址和端口号

    CONNECTIONS

    name: kong
    
    type: default
    
    kong admin url: http://host:8001  # kong-kong-admin service
    
    kong version: 1.1.2
    
    kong auth: 
    
    JWT AUTH: {Algorithm: HS256}
    
    
    

    CONSUMERS

    USERNAME:
    CUSTOM_ID:
    ACCESSIBLE ROUTES:
    

    PLUGINS

    JWT
    CORS
    

    Routes

    NAME/ID: notify_service_route
    SERVICE: notify_service
    PATH: /sms, email
    protocols: HTTP, HTTPS
    Regex priority: 0
    Methods:
    

    SERVICES

    在service可以配置使用jwt plugins可以控制service是否验证jwt

    NAME: notify_service
    HOST: notify
    PORT: 80
    Connection timeout: 60000 # The timeout in milliseconds for establishing a connection to your upstream server. Defaults to 60000
    With timeout: 60000
    Read timeout: 60000
    Path: The path to be used in requests to the upstream server. Empty by default.
    Retries: 5
    
    

    UPSTREAMS

    NAME: notify
    Details:
    Results: 25
    Targes: A target is an ip address/hostname with a port that identifies an instance of a backend service. Every upstream can have many targets, and the targets can be dynamically added and removed. So changes are effectuated on the fly.
    	{Target: host:port, WIGHT: 100} # notify service
    
    Alerts: Email 
    
    	
    
    展开全文
  • Konga is not an official app. No affiliation with Kong. Support the project If you find Konga helpful, you can show your support and help me continue maintaining the project by buying me a coffee or ...
  • Konga PC的默认屏幕 支持语言:English
  • Konga部署

    2020-04-02 11:17:52
    1. 下载镜像(KONGA v0.14.7) 选择有联网的服务器执行以下命令 docker pull pantsel/konga # 若需要部署到只有内网的服务器可将镜像保存到公网服务器本地,通过共享盘将提取到内网服务器,最后使用docker加载本地...

    前提:docker、kong、pg

    1. 下载镜像(KONGA v0.14.7)

    选择有联网的服务器执行以下命令

    docker pull pantsel/konga
    # 若需要部署到只有内网的服务器可将镜像保存到公网服务器本地,通过共享盘将提取到内网服务器,最后使用docker加载本地镜像
    # 公网服务器
    docker save pantsel/konga > /data/share/src/tar/pantsel_konga.tar
    # 内网服务器
    docker load < /data/share/src/tar/pantsel_konga.tar
    # harbor
    docker tag pantsel/konga:latest $tagprefix/pantsel/konga:latest
    docker push  $tagprefix/pantsel/konga:latest
    

    2. 创建数据库/用户(PG数据库)

    create database konga;
    create role konga with password '$kongapassword' login;
    

    3. 初始化数据库配置

    docker run --rm pantsel/konga \
    -c prepare -a postgres -u postgresql://konga:$kongapassword@$PGIP:$PGPORT/konga
    

    4. 启动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
    # 示例
    docker run -d -p $KONGAPORT:1337 \
    -e "TOKEN_SECRET=*******" \
    -e "DB_ADAPTER=postgres" \
    -e "DB_HOST=$PGIP" \
    -e "DB_PORT=$PGPORT" \
    -e "DB_USER=konga" \
    -e "DB_PASSWORD=xdhSIS123" \
    -e "DB_DATABASE=konga" \
    -e "DB_PG_SCHEMA=public" \
    -e "NODE_ENV=production" \
    --restart=on-failure:3 \
    --name konga_pc pantsel/konga
    

    5. 访问konga

    登录http://ip: $KONGAPORT,创建admin用户(admin123456),并完成相关配置。

    setup a connection to Kong Admin.

    Kong Admin URL: http://ip:port

    http://ip: $KONGAPORT/#!/dashboard
    登录http://ip:port

    展开全文
  • <p>The goal is to host Konga at <code>/konga, but Konga redirects to <code>/register</code> instead of <code>/konga/register</code>. I've not customized any configuration for Kong or Konga so both...
  • konga dbless mode

    2021-01-08 01:02:43
    d be really great to be able to define the konga configuration in a yaml file (or similar) and deploy that to kubernetes using a configmap, while having the users defined in a secret. <p>I understand ...
  • konga-master.zip

    2020-04-17 17:39:37
    KONG网关 — KongA管理UI使用 konga-master 未kong 界面化开源代码 konga,详情可以查看kong
  • konga-0.14.9

    2020-11-22 21:37:07
    konga-0.14.9
  • KONGA配置

    千次阅读 2019-03-05 16:53:33
    安装KONGA 安装nodejs和git,安装kong的文档中已经安装了,版本&gt;=8,git运行 Centos安装git yum install git -y yum install -y git 需要注意版本,git --version, 版本太低的话需要重新下载,否则git...

    安装KONGA

    安装nodejs和git,安装kong的文档中已经安装了,版本>=8,git运行

    Centos安装git

    yum install git -y
    yum install -y git

     需要注意版本,git --version  ,    版本太低的话需要重新下载,否则git  clone时会报错

    git解压编译安装

    cd git-2.0.0
    make configure
    ./configure --prefix=/usr/git ##配置目录
    make profix=/usr/git
    make install
    加入环境变量
    echo "export PATH=$PATH:/usr/git/bin" >> /etc/profile
    source /etc/profile

    检查版本

    git --version 
    git version 2.0.0

    安装依赖  (这些依赖的包,安装在konga目录中,减少一些问题)

    yum -y install nodejs npm
    npm install -g gulp
    npm install -g bower
    npm install -g sails

    安装konga

    git clone https://github.com/pantsel/konga.git
    cd konga
    npm install konga
    此时可能会报错
    
    Cloning into 'konga'...
    fatal: unable to access 'https://github.com/pantsel/konga.git/': SSL connect error
    
    升级了git版本后git clone报SSL错误,执行 yum update -y nss curl libcurl

    配置 

    # 示例配置位置
    /config/local_example.js
     
    # 拷贝一份
    cd ./config/
    cp local_example.js ./local.js
     
    # 配置默认数据库
    vi ./local.js
    models: {
        connection: process.env.DB_ADAPTER || 'localDiskDb',
    },
    # 改成
    models: {
        connection: process.env.DB_ADAPTER || 'mysql', // 这里可以用‘mysql’,‘mongo’,‘sqlserver’,‘postgres’
    },
    # 保存
     
    # 修改数据库默认配置
    vi connections.js
      postgres: {
        adapter: 'sails-postgresql',
        url: process.env.DB_URI,
        host: process.env.DB_HOST || 'localhost',
        user:  process.env.DB_USER || 'kong1',
        password: process.env.DB_PASSWORD || 'kong1',
        port: process.env.DB_PORT || 5432,
        database: process.env.DB_DATABASE ||'konga_database',
        // schema: process.env.DB_PG_SCHEMA ||'public',
        poolSize: process.env.DB_POOLSIZE || 10,
        ssl: process.env.DB_SSL ? true : false // If set, assume it's true
      },
    # 保存
     
    # 创建数据库
    psql -U postgres -d postgres -h 127.0.0.1 -p 5432
    
    # 新建 linux kong 用户
    $ adduser kong
    
    #建立新的数据库用户(和之前建立的系统用户要一样)
    postgres=# create user kong with password 'kong';
    #为新用户建立数据库
    postgres=# create database konga_database owner kong;
    #把新建的数据库权限赋予 kong
    postgres=# grant all privileges on database konga_database to kong;
    #退出控制台

    启动 (启动的时候还是缺少一些模块,直接按照建议安装就可以了)

    cd ../
    npm start
     
    error: Incompatible Node.js version. Please make sure that you have Node.js >= 8 installed.
    
    node版本太低,换8以上。
    
    启动后可能会报错,
    
    No DB Adapter defined. Using localDB...
    error: ** Grunt :: An error occurred. **
    error: 
    运行npm install sails-postgresql 报错,权限问题,
    
    执行npm install --unsafe-perm=true --allow-root sails-postgresql

    浏览

    浏览器输入 localhost:1338,端口可以在local.js改
    默认登录名admin,密码是三个admin
    配置kong API地址要填写完整地址,后面不要带‘/’

    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 120000.
     

    展开全文
  • Konga Wallpaper-crx插件

    2021-04-06 21:18:09
    语言:English Konga PC的默认屏幕
  • konga 安装部署

    2020-03-31 15:56:47
    konga是kong的UI管理界面,下面用docker安装 # 拉去镜像 docker pull pantsel/konga:latest # 导出镜像 docker save -o ./konga.tar pantsel/konga:latest # 内网导入镜像 docker load --input ...

    Kong的功能已经足够强大,它的免费版是没有提供GUI界面的,通过CLI使用始终相对不便。于是,网上一些有志之士开发了相关的GUI界面。其中,做得比较好的有:

    Kong dashboard,https://github.com/PGBI/kong-dashboard,已经长期没有更新,只支持到Kong的0.9版本,目前Kong的最新版本是1.2.x
    Konga,https://github.com/pantsel/konga,功能完善,持续更新中

    官网:https://github.com/pantsel/konga

    konga 是kong的UI管理界面,下面用docker 安装

    # 拉去镜像
    docker pull pantsel/konga:latest
    
    # 导出镜像
    docker save -o ./konga.tar pantsel/konga:latest
    
    # 内网导入镜像
    docker load --input ./konga.tar
    1.Prepare the database
    
    docker run --rm pantsel/konga:latest -c prepare -a postgres 
    -u postgresql://konga:123456@localhost:5431/konga
    
    
    # 注意 上面的localhost是docker 容器的localhost,并不是宿主机的localhost
    # 一般需要行为:172.17.0.1
    
    在docker容器里localhost并不是指宿主机的localhost
    由此原因,并不能在容器中通过localhost:3306访问到宿主机的mysql
    
    docker在运行时就建立了虚拟网卡,并命名为docker0
    我们可以在宿主机上运行ifconfig看到它,这就是宿主机建立的网桥,用于与各个容器之间通信

     

    2.Start Konga
    
    docker run -p 1337:1337 -e "TOKEN_SECRET={{somerandomstring}}" -e "DB_ADAPTER=postgres" -e 
    "DB_URI=postgresql://konga:123456@localhost:5431/konga" -e "NODE_ENV=production" 
    --name konga pantsel/konga

     

    3.访问:http://localhost:1337

     

    4.需要填写用户名、email、密码等等进行注册(内部网也需要)

     

    如果出现报错:

    error: A hook (`orm`) failed to load!
    error: Failed to prepare database: error: column r.consrc does not exist

    问题原因是:高版本postgresql导致的,后来换回9.6就可以了

     

     

     

     

     

     

     

    展开全文
  • docker安装konga

    千次阅读 2019-09-09 10:27:00
    1、docker下载konga镜像 dockerpullpantsel/konga:latest 2、使用postgres数据库,创建konga数据库 Createdatabasekongaownerpostgres; 3、使用docker初始化konga数据库 docker run --rm pantsel/konga:latest ...
  • Konga on Docker

    2021-01-08 01:37:33
    <div><p>Hi, I got an error <p>Failed to connect to kong_test. Make sure your active connection is valid and Kong is up and running. <p>I got an error after docker-compose ...pantsel/konga</p></div>
  • kong和konga

    2019-10-23 14:13:41
    安装konga Installation Installnpmandnode.js. Instructions can be foundhere. Installbower, adgulppackages. $ git clone https://github.com/pantsel/konga.git $ cd konga $ npm i 报错 MSBUIL...
  • Konga管理GUI操作

    千次阅读 2020-07-08 10:56:32
    Konga管理GUI简介安装 之前简单介绍安装了 Konga,并且进行了账号注册和设置连接,这篇就详细讲述下 Konga 的一些页面信息和使用操作。 附上: Kong 官网:https://konghq.com/ Kong GitHub地址:...
  • Konga Dashboard on SSL

    2021-01-08 00:58:14
    <div><p>Konga dashboard support SSL? On console, it shows http://localhost:1338. If I want to run this on https then is there any way to do it? Or am I missing documentation? Thanks </p><p>该提问来源...
  • Is konga alive?

    2021-01-08 00:57:27
    <div><p>No commits since about half a year, no visible activity from the maintainer? <p>It would be a great pity if ...t use konga anymore. <p>?</p><p>该提问来源于开源项目:pantsel/konga</p></div>
  • konga update service error

    2021-01-08 01:50:51
    everything is ok but when I edit service's description I got error: `error: Error (E_VALIDATION) :: ...konga image : pantsel/konga:latest</p><p>该提问来源于开源项目:pantsel/konga</p></div>
  • Konga 使用说明

    千次阅读 2019-11-23 11:01:27
    konga 目前作为一个查看 kong 配置的平台使用,具体在设置 kong 参数时,仍存在一定问题。目前配置在 kong dashbord 较为方便。 2、konga 使用 1)环境选择 步骤 2 中点选对应环境的小星星。步骤如下: ...
  • Konga can't run

    2021-01-08 01:02:43
    <div><p>There is my konga .env: When i run "npm start" it mean "Details: error relationship: "public.konga_users" does not exist" <p>I tay to use Mysql adapter, it aslo said ...
  • Using Kong to expose Konga

    2021-01-08 01:48:32
    <div><p>I am new to kong, Konga and Docker stacks. I have build a docker-compose file which will run kong and konga. In the Konga service I have exposed post 1337 and it is working without any issue. ...
  • konga-0.14.9.tar.gz

    2021-05-31 21:57:09
    konga-0.14.9.tar.gz
  • Can not access the konga

    2021-01-08 01:01:20
    <div><p>When start up the service, found that I and a few colleagues can ...Do konga have to limit access to IP or amount, or is this a bug?</p><p>该提问来源于开源项目:pantsel/konga</p></div>
  • konga.api4.top-源码

    2021-04-13 11:57:52
    Konga不是官方应用。 与没有隶属关系。 支持项目 如果您发现Konga有所帮助,可以向您或成为,以表示支持并帮助我继续维护该项目。 干杯! 支持者 特别感谢我们的支持者,这些支持者帮助我们保持了项目的进行和动力。...
  • 网络2.postgres3.kong1)初始化kong数据库2)启动kong docker容器4.konga1)创建konga数据库2) 初始化konga数据库3)启动konga docker容器 1.网络 docker network create kong-net 2.postgres docker run -d --name ...
  • <div><p>Hi ,I found a bug while using konga. Konga cannot query all the consumers completely when the number of consumers is more than 1000. By anylizing the konga 's api. I found that konga call...
  • 在linux下部署konga需要进行多种环境的搭建并进行源码下载,易出错,该安装包适用在linux环境下直接安装

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 394
精华内容 157
关键字:

konga