Skip to content

Access list not set in proxy host after disable/enable #1440

@richard7ac

Description

@richard7ac

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes - I think so - shows 2.9.9 in the GUI and it was created 2 weeks ago vs online latest 20 days
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

Access List not re-applied to proxy host on re-enablement

Nginx Proxy Manager Version

2.9.9

To Reproduce
Steps to reproduce the behavior:

  1. Create an access list.
  2. Create a proxy host and apply access list. Ensure it is enabled.
  3. Check config in /data/nginx/proxy_host ... Access list expanded correctly.
  4. Disable and reenable and check again.
  5. Config now has deny all only!!
  6. Change Access list for proxy and change it back all OK again!

Expected behavior

I would expect that re-enabling the proxy host would bring it back with the Access List as shown in the GUI

Screenshots

Before Disabled

server {
  set $forward_scheme http;
  set $server         "IPADDRESS";
  set $port           80;
  listen 80;
#listen [::]:80;
listen 443 ssl http2;
#listen [::]:443;
  server_name SERVERURL;
  # Let's Encrypt SSL
  include conf.d/include/letsencrypt-acme-challenge.conf;
  include conf.d/include/ssl-ciphers.conf;
  ssl_certificate /etc/letsencrypt/live/npm-17/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/npm-17/privkey.pem;
  access_log /data/logs/proxy-host-16_access.log proxy;
  error_log /data/logs/proxy-host-16_error.log warn;
  location / {
    # Access Rules
    allow 192.168.0.0/16;
    allow 10.0.0.0/8;
    allow 172.16.0.0/12;
    deny all;
    # Access checks must...
    satisfy all;
    # Proxy!
    include conf.d/include/proxy.conf;
  }
  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}

Disabled File no longer exists

Re-Enabled

server {
  set $forward_scheme http;
  set $server         "IPADDRESS";
  set $port           80;
  listen 80;
#listen [::]:80;
listen 443 ssl http2;
#listen [::]:443;
  server_name SERVERURL;
  # Let's Encrypt SSL
  include conf.d/include/letsencrypt-acme-challenge.conf;
  include conf.d/include/ssl-ciphers.conf;
  ssl_certificate /etc/letsencrypt/live/npm-17/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/npm-17/privkey.pem;
  access_log /data/logs/proxy-host-16_access.log proxy;
  error_log /data/logs/proxy-host-16_error.log warn;
  location / {
    # Access Rules
    deny all;
    # Access checks must...
    satisfy all;
    # Proxy!
    include conf.d/include/proxy.conf;
  }
  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}

Operating System

Raspberry Pi 4 using Portainer to deploy NPM

Additional context

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