Skip to content

Simple tool that updates nginx proxy manager access list from allow or deny file with list of IPs

Notifications You must be signed in to change notification settings

enhaut/npm-access-list-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx proxy manager access list updater

Simple tool that updates access list in nginx proxy manager based on text file.

Installation

This project uses pdm for package management, so be sure you have pdm already installed.

To install project, you can run:

pdm install

Usage

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

About

Simple tool that updates nginx proxy manager access list from allow or deny file with list of IPs

Topics

Resources

Stars

Watchers

Forks

Languages