mirror of
https://github.com/Erreur32/nginx-proxy-manager-Bash-API.git
synced 2024-10-18 09:20:13 +02:00
Add Exemples commands in Help
This commit is contained in:
parent
f24ae9cf0e
commit
19239b58ff
@ -162,21 +162,25 @@ usage() {
|
||||
echo -e "Examples:"
|
||||
echo -e "\n 📦 Backup First before doing anything!"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-backup"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-backup-id 1"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-backup-id 10"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-restore"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-restore-id 1"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-restore-id 10"
|
||||
echo -e "\n 🌐 Host Creation"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-show-default"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-ssl-enable 10"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-show 10"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-list"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-show 1"
|
||||
echo -e "\n 👤 User Management"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-create-user newuser password123 user@example.com"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-delete-user 'username'"
|
||||
echo -e "\n 🔧 Advanced Example:"
|
||||
echo -e " ./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;'"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-ssl-enable 32"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh --host-generate-cert example.com user@example.com --custom"
|
||||
echo -e "\n 📁 Custom locations:"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -l '[{\"path\":\"/api\",\"forward_host\":\"192.168.1.11\",\"forward_port\":8081}]'"
|
||||
echo -e "\n 🔖 Full option:"
|
||||
echo -e " ./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -f https -c true -b true -w true -a 'proxy_set_header X-Real-IP $remote_addr;' -l '[{\"path\":\"/api\",\"forward_host\":\"192.168.1.11\",\"forward_port\":8081}]'"
|
||||
echo -e ""
|
||||
echo -e "Options:"
|
||||
echo -e " -d ${COLOR_ORANGE}DOMAIN_NAMES${COLOR_RESET} Domain name (${COLOR_RED}required${COLOR_RESET})"
|
||||
@ -208,7 +212,7 @@ usage() {
|
||||
echo -e " --host-disable id ❌ ${COLOR_ORANGE}Disable${COLOR_RESET} Proxy host by ${COLOR_YELLOW}ID${COLOR_RESET}"
|
||||
echo -e " --host-ssl-enable id 🔒 ${COLOR_GREEN}Enable${COLOR_RESET} SSL, HTTP/2, and HSTS for a proxy host (Will generate Certificat auto if needed)"
|
||||
echo -e " --host-ssl-disable id 🔓 ${COLOR_ORANGE}Disable${COLOR_RESET} SSL, HTTP/2, and HSTS for a proxy host"
|
||||
echo -e " --host-generate-cert domain email [--custom] 🛡️ ${COLOR_GREEN}Generate${COLOR_RESET} Custom certificate for the given domain and email (not finished yet)"
|
||||
echo -e " --host-generate-cert domain email [--custom] 🛡️ ${COLOR_GREEN}Generate${COLOR_RESET} Custom certificate for the given domain and email (Only for Custom certificat)"
|
||||
echo -e " --host-help ℹ️ ${COLOR_YELLOW}Display${COLOR_RESET} This help"
|
||||
echo ""
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user