Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Database seed for Kong 1.0 Admin API proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed Nov 15, 2018
1 parent dd795c1 commit 48ea799
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ADMIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ curl http://localhost:8001/services/ -i -X POST \
curl http://localhost:8001/plugins/ -i -X POST \
--data 'name=request-size-limiting' \
--data "config.allowed_payload_size=8" \
--data "service_id=$SERVICE_ID"
--data "service.id=$SERVICE_ID"
curl http://localhost:8001/plugins/ -i -X POST \
--data 'name=rate-limiting' \
--data "config.minute=5" \
--data "service_id=$SERVICE_ID"
--data "service.id=$SERVICE_ID"
curl http://localhost:8001/plugins/ -i -X POST \
--data 'name=key-auth' \
--data "config.hide_credentials=true" \
--data "service_id=$SERVICE_ID"
--data "service.id=$SERVICE_ID"
curl http://localhost:8001/plugins/ -i -X POST \
--data 'name=acl' \
--data "config.whitelist=kong-admin" \
--data "service_id=$SERVICE_ID"
--data "service.id=$SERVICE_ID"
curl http://localhost:8001/routes/ -i -X POST \
--data 'paths[]=/kong-admin' \
--data 'protocols[]=https' \
Expand Down
2 changes: 1 addition & 1 deletion bin/prerelease
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ if [ -n "$admin_key" ]
then
echo "Setting Admin API key to value of KONG_HEROKU_ADMIN_KEY"
# This `id` matches the "kong-admin" keyauth_credentials record contained in "config/pg-heroku-admin.dump"
psql "$DATABASE_URL" -c "UPDATE keyauth_credentials SET key='${admin_key}' WHERE id='ac8af1d3-377a-41ae-9fd5-dbf98c599c5c';"
psql "$DATABASE_URL" -c "UPDATE keyauth_credentials SET key='${admin_key}' WHERE id='d316d9e3-8c9c-4b75-9895-6f7721d933db';"
fi
Binary file modified config/pg-heroku-admin.dump
Binary file not shown.

0 comments on commit 48ea799

Please sign in to comment.