Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music
All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => all application on unix knowledges by golfreeze => Topic started by: golfreeze on มีนาคม 28, 2018, 08:19:06 pm
-
###For tyk dashboard configure on ip global = 103.86.xx.yy
sudo /opt/tyk-dashboard/install/setup.sh --listenport=3000 --redishost=localhost --redisport=6379 --mongo=mongodb://127.0.0.1/tyk_analytics --tyk_api_hostname=$HOSTNAME --tyk_node_hostname=http://103.86.xx.yy --tyk_node_port=8080 --portal_root=/portal --domain="103.86.xx.yy"
###For tyk Gateway configure https://tyk.io/docs/get-started/with-tyk-on-premise/installation/on-ubuntu/gateway/
sudo /opt/tyk-gateway/install/setup.sh --listenport=8080 --redishost=localhost --redisport=6379 --domain=""
###Howto create first api
https://tyk.io/blog/docs/tyk-api-gateway-v1-9/tutorials/set-up-your-first-api/
###Test for curl
curl -H "Authorization: null" http://tykapi.packetlove.com:8080/pkl-api/get
curl -H "Authorization: api-keyea81a" http://tykapi.packetlove.com:8080/pkl-api/get
curl -H "Authorization: api-keyea81a" http://127.0.0.1:8080/pkl-api/get
curl -H "Authorization: api-keyea81a" http://tykapi.packetlove.com:8080/pkl-api/ip
###Generate API from http://tykapi.okard.com:3000/ then export .json file to Path to keep json file
/opt/tyk-gateway/apps
pkl.json need to change domain to below.
"domain": "",
###debug log
tail -f /var/log/upstart/tyk-gateway.log
-
install for identity-broker
https://github.com/TykTechnologies/tyk-identity-broker