Hello I have config to combine basic auth and ip whitelisting like that:
combine basic auth and ip whitelisting
satisfy any;
include /etc/nginx/myips;
deny all;
auth_basic “Restricted”;
auth_basic_user_file /etc/nginx/.htpasswd;
end combine basic auth and ip whitelisting
In the past I only use static IP’s and that work very well.
Now I use dynamic IP’s and want to add IP’s to “myips”-file by script.
Is it possible that nginx load the file dynamic on runtime or must I
always reload nginx when an IP is added?