Proxying Requests with Nginx (OpenResty) and Consul

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 เม.ย. 2022
  • Proxying Requests with Nginx (OpenResty) and Consul
    I've recently figured out how you can reverse proxy and load balance on application instances registered on Hashicorp Consul using an Nginx implementation called OpenResty, which allows you to extend Nginx using Lua scripts
    😀 SUBSCRIBE for more videos! / ahnafzamil
    ➤ My website: ahnafzamil.com
    ➤ My Discord Server: / discord
    ➤ My Twitter: / @devguyahnaf
    ➤ Support me on Patreon: / ahnafzamil
    Links
    ====
    Code: github.com/ahnaf-zamil/openre...
    OpenResty: openresty.org/en/
    HashiCorp Consul: www.consul.io/
    Software Used
    ============
    Recording: OBS Studio
    Thumbnail: Photopea (Web)
    Editing: Shotcut
    Hope you enjoy this video, I am open to feedback.
    i use arch btw
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 6

  • @ghassenkahri5470
    @ghassenkahri5470 2 ปีที่แล้ว

    Legendary, keep going yo

  • @liorbm1
    @liorbm1 ปีที่แล้ว +1

    where in the 'dns_access' file you assign the ip's & ports ?
    didnt understand the logic there..

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      The IP and ports of the Flask apps? They are automatically assigned in Consul when the app registers itself during startup.

    • @liorbm1
      @liorbm1 ปีที่แล้ว +1

      ​@@devguyahnaf
      didn't understand where is the assign operation to the 'proxy_pass'

    • @liorbm1
      @liorbm1 ปีที่แล้ว

      @@devguyahnaf oh, ok got it. (it happens in the 'ngx.var.proxy_address')
      great video ! thanks !

  • @Lemantra
    @Lemantra 11 หลายเดือนก่อน +1

    Lacrimosa