Welcome! Log In Create A New Profile

Advanced

Dynamic IP Whitelisting From A Database

Anonymous User
October 15, 2012 01:56AM
Hi,

We have a software as a service product where each user get's their own hosted subdomain like (me.domain.com). We would like to implement whitelisting, where users can specify certain IP addresses that are allowed to view their site. This is implemented like:

location / {
allow 1.2.3.4;
allow 2.3.4.5;
deny all;
}

The problem is that we don't want to deal with the application code touching/writing the nginx configuration when a user makes changes to the whitelist. I was thinking it would be awesome if nginx could read this from a database (MySQL or SQLite), and auto populate the allow list from that. Is this possible? If not, what is the best way to implement whitelisting, without the application code reading and writing the nginx configuration file.
Subject Author Posted

Dynamic IP Whitelisting From A Database

Anonymous User October 15, 2012 01:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 237
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready