Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unknown option ignored for known options (-l -a) #22

@nybos486

Description

@nybos486

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:

  1. Command: ./npm-api.sh --host-create example.com -i 192.168.1.10 -p 8080 -a 'proxy_set_header X-Real-IP $remote_addr;''

  2. See error: ⚠️ WARNING: Unknown option ignored -> -a

  3. 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}]'

  4. See error: ⚠️ WARNING: Unknown option ignored -> -l

  5. 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}]'

  6. See error:
    ⚠️ WARNING: Unknown option ignored -> -a

⚠️ WARNING: Unknown option ignored -> -l

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions