logo jittagornp.me

Setup Kong Loadbalancing

headers for all requests

Content-Type : application/json  

1. Add Upstreams server

1.1 set upstream name
http post

http://<GATEWAY_IP>:8001/upstreams

body

{
  "name" : "oauth.v1.service"    
}

1.2 set target servers under upstream http post

http://<GATEWAY_IP>:8001/upstreams/oauth.v1.service/targets

body

target server 1

{
  "target" : "10.130.50.115:30001",
  "weight" : 50
}

target server 2

{
  "target" : "10.130.12.164:30001",
  "weight" : 50
}

2. Add Service

http post

http://<GATEWAY_IP>:8001/services

body

{
  "name" : "oauth-service",
  "host" : "oauth.v1.service",
  "path" : "/"
}

3. Add Route under service

http post

http://<GATEWAY_IP>:8001/services/oauth-service/routes

body

{
  "hosts" : ["auth.mydomainname.com"],
  "paths" : ["/oauth/v1"]
}

4. Test Access

https://auth.mydomainname.com/oauth/v1

Reference

https://docs.konghq.com/1.4.x/loadbalancing/

Table of Contents

สำหรับเพื่อน ๆ คนไหน ที่ชื่นชอบบทความ และอยากจะสนุนสนันค่ากาแฟเล็ก ๆ น้อย ๆ สามารถคลิกที่ปุ่มนี้เพื่อไปยังหน้า Buy me a coffee ได้ครับ

โฆษณา

iWallet เป็น Bot หรือโปรแกรมอัตโนมัติ ที่เอาไว้ซื้อ/ขาย แลกเปลี่ยนเหรียญ (Digital Token) บน DeFi (Decentralized Finance) โดยใช้ Concept Rebalancing แบบ 50:50

Features
  • รองรับหลาย Wallets
  • รองรับหลาย Networks (ตอนนี้รองรับ BSC, Polygon, Bitkub)
  • รองรับ Token ประเภท ERC-20 ทุกตัว
  • ทำ Rebalancing อัตโนมัติ (50:50)
  • ทำ Manual Reblanacing ได้
  • เติม Gas อัตโนมัติ (ถ้าเห็นว่า Gas ใกล้หมด)
  • PWA (Progressive Web App) สามารถติดตั้งลงบน Desktop และ Mobile ได้
  • รองรับ Two-Factor Authentication (2FA), Google Authenticator
  • ดูประวัติการทำ Rebalancing (Reblancing History)
  • ดูประวัติการโอน (Transfer History)
  • รู้กำไร และขาดทุน โดยดูจากต้นทุนที่โอนเข้า/ออก iWallet (บอกเป็น %)
  • มีหน้าจอสำหรับโอน (Transfer) Token
  • มีแจ้งเตือนทาง LINE (Notification) ถ้า Bot ทำ Rebalance หรือมีการโอนเข้า/ออก iWallet
  • Export ประวัติการทำ Rebalancing ในรูปแบบ Excel
  • อื่น ๆ ที่กำลังพัฒนาต่อ
อ่านรายละเอียดเพิ่มเติมได้ที่ https://iwallet.jittagornp.me
profile photo
จิตกร พิทักษ์เมธากุล fire fire fire
Software Developer พ่อลูกอ่อน