mirror of
https://github.com/Erreur32/nginx-proxy-manager-Bash-API.git
synced 2025-01-03 10:52:12 +01:00
Update Readme
This commit is contained in:
parent
1e167071f2
commit
e24b232fdf
1 changed files with 41 additions and 23 deletions
64
README.md
64
README.md
|
@ -45,33 +45,51 @@ API_PASS="password"
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
```tcl
|
```tcl
|
||||||
-d DOMAIN_NAMES Domain name (required)
|
Options:
|
||||||
-i FORWARD_HOST IP address or domain name of the target server (required)
|
-d DOMAIN_NAMES Domain name (required for creating/updating hosts)
|
||||||
-p FORWARD_PORT Port of the target server (required)
|
-i FORWARD_HOST IP address or domain name of the target server (required for creating/updating hosts)
|
||||||
-s SSL_FORCED Force SSL (true/false, default: false)
|
-p FORWARD_PORT Port of the target server (required for creating/updating hosts)
|
||||||
-c CACHING_ENABLED Enable caching (true/false, default: false)
|
-f FORWARD_SCHEME Scheme for forwarding (http/https, default: http)
|
||||||
-b BLOCK_EXPLOITS Block exploits (true/false, default: true)
|
-s SSL_FORCED Force SSL (true/false, default: false)
|
||||||
-w ALLOW_WEBSOCKET_UPGRADE Allow WebSocket upgrade (true/false, default: false)
|
-c CACHING_ENABLED Enable caching (true/false, default: false)
|
||||||
-h HTTP2_SUPPORT Support HTTP/2 (true/false, default: true)
|
-b BLOCK_EXPLOITS Block exploits (true/false, default: true)
|
||||||
-a ADVANCED_CONFIG Advanced configuration (string)
|
-w ALLOW_WEBSOCKET_UPGRADE Allow WebSocket upgrade (true/false, default: true)
|
||||||
-e LETS_ENCRYPT_AGREE Accept Let's Encrypt (true/false, default: false)
|
-h HTTP2_SUPPORT Support HTTP/2 (true/false, default: true)
|
||||||
-n DNS_CHALLENGE DNS challenge (true/false, default: false)
|
-a ADVANCED_CONFIG Advanced configuration (block of configuration settings)
|
||||||
--create-user username password Create a user with a username and password
|
-e LETS_ENCRYPT_AGREE Accept Let's Encrypt (true/false, default: false)
|
||||||
--delete-user username Delete a user by username
|
-m LETS_ENCRYPT_EMAIL Email for Let's Encrypt (required if LETS_ENCRYPT_AGREE is true)
|
||||||
--delete-host id Delete a proxy host by ID
|
-n DNS_CHALLENGE DNS challenge (true/false, default: false)
|
||||||
--list-hosts List the names of all proxy hosts
|
-t TOKEN_EXPIRY Token expiry duration (default: 1y)
|
||||||
--list-hosts-full List all proxy hosts with full details
|
--create-user user pass Create a user with a username and password
|
||||||
--list-ssl-certificates List all SSL certificates
|
--delete-user username Delete a user by username
|
||||||
--list-users List all users
|
--delete-host id Delete a proxy host by ID
|
||||||
--search-host hostname Search for a proxy host by domain name
|
--list-hosts List the names of all proxy hosts
|
||||||
--help Display this help
|
--list-hosts-full List all proxy hosts with full details
|
||||||
|
--list-ssl-certificates List all SSL certificates
|
||||||
|
--list-users List all users
|
||||||
|
--search-host hostname Search for a proxy host by domain name
|
||||||
|
--enable-host id Enable a proxy host by ID
|
||||||
|
--disable-host id Disable a proxy host by ID
|
||||||
|
--check-token Check if the current token is valid
|
||||||
|
--backup Backup all configurations to a file
|
||||||
|
--help Display this help
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
```bash
|
```bash
|
||||||
./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -s true
|
Usage:
|
||||||
./nginx_proxy_manager_cli.sh --create-user newuser password123
|
./nginx_proxy_manager_cli.sh [OPTIONS]
|
||||||
./nginx_proxy_manager_cli.sh --list-hosts
|
|
||||||
|
Examples:
|
||||||
|
./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -s true
|
||||||
|
./nginx_proxy_manager_cli.sh --create-user newuser password123 user@example.com
|
||||||
|
./nginx_proxy_manager_cli.sh --delete-user 'username'
|
||||||
|
./nginx_proxy_manager_cli.sh --list-hosts
|
||||||
|
./nginx_proxy_manager_cli.sh --backup
|
||||||
|
|
||||||
|
Advanced proxy tab example:
|
||||||
|
./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -a "proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
![https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-script.png](https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-script.png)
|
![https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-script.png](https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-script.png)
|
||||||
|
|
Loading…
Reference in a new issue