-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Describe the bug
When attempting to run example commands that invoke optional flags for custom_locations (-l), or advanced_config (-a) return a error and changes are not applied.
To Reproduce
Steps to reproduce the behavior:
-
Command: ./npm-api.sh --host-create example.com -i 192.168.1.10 -p 8080 -a 'proxy_set_header X-Real-IP $remote_addr;''
-
See error:
⚠️ WARNING: Unknown option ignored -> -a -
Command ./npm-api.sh --host-create example.com -i 192.168.1.10 -p 8080 -l '[{"path":"/api","forward_host":"192.168.1.11","forward_port":8081}]'
-
See error:
⚠️ WARNING: Unknown option ignored -> -l -
Command: ./npm-api.sh --host-create 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}]'
-
See error:
⚠️ WARNING: Unknown option ignored -> -a
Expected behavior
According to documentation the script should apply the custom_locations or advanced_configs to the proxy host.
Operating System:
- OS: Ubuntu
- Version 22.04.5 LTS x86_64
- Docker version: Docker version 27.5.1, build 27.5.1-0ubuntu3~22.04.2
- NginxProxyManager image: jc21/nginx-proxy-manager:latest 405c49a2d38c 4 weeks ago 1.1GB