Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: Namespace
metadata:
name: kong
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongclusterplugins.configuration.konghq.com
spec:
# -----------------------
# Kong configuration file
# -----------------------
#
# The commented-out settings shown in this file represent the default values.
#
# This file is read when `kong start` or `kong prepare` are used. Kong
# generates the Nginx configuration with the settings specified in this file.
#
# All environment variables prefixed with `KONG_` and capitalized will override
local cassandra = require "cassandra"
local Cluster = require "resty.cassandra.cluster"
local semaphore = require "ngx.semaphore"
local CassandraConnector = {}
CassandraConnector.__index = CassandraConnector
function CassandraConnector.new(kong_config)
--- Cassandra cluster client module.
-- Cluster module for OpenResty.
-- @module resty.cassandra.cluster
-- @author thibaultcha
-- @release 1.3.2
-- Modified from https://github.com/thibaultcha/lua-cassandra/blob/master/lib/resty/cassandra/cluster.lua
-- Adds some extra debug logging used during development
local resty_lock = require 'resty.lock'
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:144: Loading Admin API endpoints
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:165: No API endpoints loaded for plugin: response-transformer
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:165: No API endpoints loaded for plugin: correlation-id
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:165: No API endpoints loaded for plugin: statsd
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:161: Loading API endpoints for plugin: jwt
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:165: No API endpoints loaded for plugin: cors
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:161: Loading API endpoints for plugin: basic-auth
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:161: Loading API endpoints for plugin: key-auth
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:165: No API endpoints loaded for plugin: ldap-auth
E 2018/03/16 19:24:57 [debug] 46#0: *352 [lua] init.lua:161: Loading API
10:14:27-0700 vshn $ cat /tmp/hakka.json| jq 'select(.client.ip == "210.101.131.231") |.timestamp,.edge.rateLimit.processedRules,.clientRequest.uri'
1509208285242000100
[]
"/"
1509208285441000000
[]
"/"
1509208287851000000
[
{
Dear Ms. Branstner
you are on my mind
all the time
I'm sleeping on the ground
for now, I'll forget about
babies born
my aunt has met the lord
she is living proof
that our intentions do
what we want 'em to
дорогая госпожа Бранстера
ты на мой взгляд
все время
спальная на земле
пока я забуду
дети родят
моя тётя встречала господа
она живая правда
наше намерение сделают
так мы хотели бы
дорогая Бранстера
взгляд (моя)
все время
спальная земле
пока забуду я
дети родят
встречала лорд она
она живая прав
наше цели сдел
так мы хотели бы
VisibilityNotify event, serial 33, synthetic NO, window 0x1c00001,
state VisibilityFullyObscured
^[^[[C
VisibilityNotify event, serial 33, synthetic NO, window 0x1c00001,
state VisibilityUnobscured
Expose event, serial 33, synthetic NO, window 0x1c00001,
(0,0), width 845, height 10, count 3
Expose event, serial 33, synthetic NO, window 0x1c00001,