I want create a task on my Capistrano deploy to put my public IP on geo module configuration of my NGINX server without restart NGINX, is it possible? Example, my /etc/nginx/nginx.conf:
geo $geo {
default no;
include /home/deploy_user/appname/shared/ip_list;
}
The file /home/deploy_user/appname/shared/ip_list I will provide during deploy. I need this because my public IP can change many times.
Regards, João