Simple tool that updates access list in nginx proxy manager based on text file.
This project uses pdm
for package management, so be sure you have
pdm
already installed.
To install project, you can run:
pdm install
See pdm run npm-updater --help
command output:
usage: pdm run npm-updater [-h] [--url URL] [--user USER] [--password PASSWORD] --access-list ACCESS_LIST [--allow-file ALLOW_FILE] [--deny-file DENY_FILE]
NPM access list hosts updater
options:
-h, --help show this help message and exit
--url URL NPM URL e.g. http://localhost:81 (env: NPM_UPDATER_URL)
--user USER NPM username (env: NPM_UPDATER_USER)
--password PASSWORD NPM password (env: NPM_UPDATER_PASS)
--access-list ACCESS_LIST
Access list name
--allow-file ALLOW_FILE
Files with IPs to allow (can be specified multiple times)
--deny-file DENY_FILE
Files with IPs to deny (can be specified multiple times)
Allow/deny file should have single IPv4 or IPv6 per line, example of such file:
192.0.2.0/23
192.0.2.200
2001:db8::/32