start feature programming mode

This commit is contained in:
Eugenio Marzo
2022-10-16 10:55:54 +02:00
parent 5c10b910f9
commit 2b0a69f77b
3 changed files with 95 additions and 26 deletions
+13
View File
@@ -0,0 +1,13 @@
local https = require "ssl.https"
local ltn12 = require "ltn12"
local json = require 'lunajson'
local redis = require "resty.redis"
if os.getenv("KUBERNETES_SERVICE_HOST") then
k8s_url = "https://" .. os.getenv("KUBERNETES_SERVICE_HOST") .. ":" .. os.getenv("KUBERNETES_SERVICE_PORT_HTTPS")
else
k8s_url = os.getenv("ENDPOINT")
end
local token = os.getenv("TOKEN")
local arg = ngx.req.get_uri_args()