eubnara / study

6 stars 2 forks source link

nginx, dns, proxy_pass 관련 #249

Open eubnara opened 3 years ago

eubnara commented 3 years ago

https://www.nginx.com/blog/dns-service-discovery-nginx-plus/

NGINX caches the DNS records until the next restart or configuration reload, ignoring the records’ TTL values

eubnara commented 3 years ago

proxy_pass 에 dns 명을 넣어두었지만, ip 가 종종 바뀌는 경우에 대한 팁

변수로 만들어버리기

http://tech.kkung.net/blog/nginx-with-elb/

eubnara commented 3 years ago

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass

proxy_pass 에 변수가 들어있으면 server_group 에서 찾아보고 resolver 에 query

Parameter value can contain variables. In this case, if an address is specified as a domain name, the name is searched among the described server groups, and, if not found, is determined using a resolver.