Skip to content

When an access list is selected containing only access rules and no authorizations, it should only include the rules in the proxy config and not the authorization #419

@geertmeersman

Description

@geertmeersman

Hi,

when creating an access list containing just access rules and no authorization, the proxy host template still included the section

    {% if access_list_id > 0 %}
    # Authorization
    auth_basic            "Authorization required";
    auth_basic_user_file  /data/access/{{ access_list_id }};

I would like to only see the # Access Rules part being populated.

  • What version of Nginx Proxy Manager is reported on the login page? 2.2.4

To Reproduce
Steps to reproduce the behavior:

  1. Go to Access Lists
  2. Click on 'Add Access List'
  3. Provide a name and in the 'Access section' provide some IP addresses to allow
  4. Save
  5. Add the Access list to a proxy host

Expected behavior
The proxy host should not pop up a basic authentication popup in the browser since no names/passwords were provided

Screenshots
Auth Popup

Additional context
I now always delete the lines in the generated proxy host, but it would be perfect if this would be handled in the template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions