GithubHelp home page GithubHelp logo

kong's Introduction

add an admin service

curl -i -X POST http://localhost:8001/services -d 'name=admin-service' -d 'url=http://kong_kong:8001'

add an admin route

curl -i -X POST http://localhost:8001/services/admin-service/routes -d 'paths[]=/admin' -d 'name=admin-route'

add a konga service

curl -i -X POST http://localhost:8001/services -d 'name=konga-service' -d 'url=http://konga_konga:1337'

add a konga route

curl -i -X POST http://localhost:8001/services/konga-service/routes -d 'paths[]=/konga' -d 'name=konga-route'

add a dummy service if needed

curl http://localhost:8001/services -d name=acme-dummy -d url=http://127.0.0.1:65535 --header "apikey: "

add a dummy route if needed

curl http://localhost:8001/routes -d name=acme-dummy -d paths[]=/.well-known/acme-challenge -d service.name=acme-dummy --header "apikey: "

add the plugin acme

curl http://localhost:8001/plugins -d name=acme -d [email protected] -d config.tos_accepted=true -d config.domains[]=superapi-stresstest.codeoffice.net -d config.storage=kong

curl http://localhost:8001/routes -d name=superapi-web-acme -d hosts[]=superapi-stresstest.codeoffice.net -d paths[]=/.well-known/acme-challenge -d service.name=acme-dummy

User can also use this endpoint to force "renew" a certificate

curl http://localhost:8001/acme -d host=superapi-stresstest.codeoffice.net

Optional

Create a Consumer for admin

curl -i -X POST --url http://localhost:8001/consumers/ --data "username=admin"

Provision key credentials for your Consumer admin

curl -i -X POST --url http://localhost:8001/consumers/admin/key-auth/ --data 'key=ENTER_KEY_HERE'

Verify that your Consumer credentials are valid

curl -i -X GET --url http://localhost:8001 --header "Host: example.com" --header "apikey: ENTER_KEY_HERE"

kong's People

Contributors

iniyusril avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.