Closed Anand195 closed 6 months ago
Same question here! Does Gunicorn allow a setting for IP White-Listing? If not is this feature in scope? Right now I think we can only choose between ever whitelisting IPs in the source code or using a proxy to do this.
There are many great proxies and firewall projects and lots of infrastructure that allows this. If you're not running in a cloud environment where network infrastructure is programmable to customize this, then you may have access to iptables. Gunicorn does not currently implement such a feature, nor is it planned at this time.
Hello, there
I would like to whitelist only those IP addresses for which I wan to serve the request, other than that just want to DENY.
here is the sample gunicorn settions which i follow
I set
ALLOWED_HOST = ['*']
in settings.pyDO let me know how can I set the whitelist or allowed IP list.