Created
April 25, 2017 18:45
-
-
Save p0pr0ck5/cc55123260c3f36e6d7c497f5d590a51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@precise64:/kong$ kong stop | |
Kong stopped | |
vagrant@precise64:/kong$ kong migrations reset | |
> Are you sure? This operation is irreversible. [Y/n] y | |
Schema successfully reset | |
vagrant@precise64:/kong$ kong start | |
migrating core for database kong | |
core migrated up to: 2015-01-12-175310_skeleton | |
core migrated up to: 2015-01-12-175310_init_schema | |
core migrated up to: 2015-11-23-817313_nodes | |
core migrated up to: 2016-02-29-142793_ttls | |
core migrated up to: 2016-09-05-212515_retries | |
core migrated up to: 2016-09-16-141423_upstreams | |
core migrated up to: 2016-12-14-172100_move_ssl_certs_to_core | |
core migrated up to: 2016-11-11-151900_new_apis_router_1 | |
core migrated up to: 2016-11-11-151900_new_apis_router_2 | |
core migrated up to: 2016-11-11-151900_new_apis_router_3 | |
core migrated up to: 2016-01-25-103600_unique_custom_id | |
core migrated up to: 2017-01-24-132600_upstream_timeouts | |
core migrated up to: 2017-01-24-132600_upstream_timeouts_2 | |
migrating hmac-auth for database kong | |
hmac-auth migrated up to: 2015-09-16-132400_init_hmacauth | |
migrating rate-limiting for database kong | |
rate-limiting migrated up to: 2015-08-03-132400_init_ratelimiting | |
rate-limiting migrated up to: 2016-07-25-471385_ratelimiting_policies | |
migrating cors for database kong | |
cors migrated up to: 2017-03-14_multiple_orgins | |
migrating ip-restriction for database kong | |
ip-restriction migrated up to: 2016-05-24-remove-cache | |
migrating key-auth for database kong | |
key-auth migrated up to: 2015-07-31-172400_init_keyauth | |
migrating jwt for database kong | |
jwt migrated up to: 2015-06-09-jwt-auth | |
jwt migrated up to: 2016-03-07-jwt-alg | |
migrating galileo for database kong | |
galileo migrated up to: 2016-04-15_galileo-import-mashape-analytics | |
migrating oauth2 for database kong | |
oauth2 migrated up to: 2015-08-03-132400_init_oauth2 | |
oauth2 migrated up to: 2016-07-15-oauth2_code_credential_id | |
oauth2 migrated up to: 2016-12-22-283949_serialize_redirect_uri | |
oauth2 migrated up to: 2016-09-19-oauth2_api_id | |
oauth2 migrated up to: 2016-12-15-set_global_credentials | |
migrating basic-auth for database kong | |
basic-auth migrated up to: 2015-08-03-132400_init_basicauth | |
basic-auth migrated up to: 2017-01-25-180400_unique_username | |
migrating response-ratelimiting for database kong | |
response-ratelimiting migrated up to: 2015-08-03-132400_init_response_ratelimiting | |
response-ratelimiting migrated up to: 2016-08-04-321512_response-rate-limiting_policies | |
migrating acl for database kong | |
acl migrated up to: 2015-08-25-841841_init_acl | |
32 migrations ran | |
Kong started | |
vagrant@precise64:/kong$ curl -XPOST localhost:8001/apis --data name=app --data uris=/app --data upstream_url=http://app | |
{"http_if_terminated":true,"id":"f59b21ab-dc1d-41ba-983c-b4d6aab7f0cb","retries":5,"preserve_host":false,"created_at":1493145873000,"upstream_connect_timeout":60000,"upstream_url":"http:\/\/app","upstream_read_timeout":60000,"https_only":false,"upstream_send_timeout":60000,"strip_uri":true,"name":"app","uris":["\/app"]} | |
vagrant@precise64:/kong$ curl localhost:8001/apis | |
{"data":[{"uris":["\/app"],"id":"f59b21ab-dc1d-41ba-983c-b4d6aab7f0cb","upstream_read_timeout":60000,"preserve_host":false,"created_at":1493145873000,"upstream_connect_timeout":60000,"upstream_url":"http:\/\/app","strip_uri":true,"https_only":false,"name":"app","http_if_terminated":true,"upstream_send_timeout":60000,"retries":5}],"total":1} | |
vagrant@precise64:/kong$ curl -v localhost:8000/app | |
* About to connect() to localhost port 8000 (#0) | |
* Trying 127.0.0.1... connected | |
> GET /app HTTP/1.1 | |
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 | |
> Host: localhost:8000 | |
> Accept: */* | |
> | |
< HTTP/1.1 502 Bad Gateway | |
< Date: Tue, 25 Apr 2017 18:44:53 GMT | |
< Content-Type: text/plain; charset=UTF-8 | |
< Transfer-Encoding: chunked | |
< Connection: keep-alive | |
< Server: kong/0.10.1 | |
< | |
An invalid response was received from the upstream server | |
* Connection #0 to host localhost left intact | |
* Closing connection #0 | |
vagrant@precise64:/kong$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment