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 - วิทยาศาสตร์และเทคโนโลยี
Legendary, keep going yo
where in the 'dns_access' file you assign the ip's & ports ?
didnt understand the logic there..
The IP and ports of the Flask apps? They are automatically assigned in Consul when the app registers itself during startup.
@@devguyahnaf
didn't understand where is the assign operation to the 'proxy_pass'
@@devguyahnaf oh, ok got it. (it happens in the 'ngx.var.proxy_address')
great video ! thanks !
Lacrimosa