[GH-ISSUE #1285] Mysql config change + Nginx restart does not apply new config #1037

Closed
opened 2026-02-26 06:35:31 +03:00 by kerem · 1 comment
Owner

Originally created by @rwjack on GitHub (Aug 4, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1285

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • 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

Changing settings inside the mysql database, eg. automation scripts to allow certain proxy hosts at certain times, and then reloading Nginx does not apply the setting.

Nginx Proxy Manager Version

2.9.6

To Reproduce
Steps to reproduce the behavior:

$ docker exec -it $npmdb mysql -u root -p
use npm;
update proxy_host set access_list_id=1 where id=16;

$ docker exec -it $npm nginx -s reload

Expected behavior

Disabling a proxy host from the DB should actually disable it on reload of nginx, not just show as disabled on the frontend UI, or I'm just not seeing an easier way of interacting with the backend using the CLI.

Originally created by @rwjack on GitHub (Aug 4, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1285 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - 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** <!-- A clear and concise description of what the bug is. --> Changing settings inside the mysql database, eg. automation scripts to allow certain proxy hosts at certain times, and then reloading Nginx does not apply the setting. **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> 2.9.6 **To Reproduce** Steps to reproduce the behavior: ``` $ docker exec -it $npmdb mysql -u root -p use npm; update proxy_host set access_list_id=1 where id=16; $ docker exec -it $npm nginx -s reload ``` **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Disabling a proxy host from the DB should actually disable it on reload of nginx, not just show as disabled on the frontend UI, or I'm just not seeing an easier way of interacting with the backend using the CLI.
kerem 2026-02-26 06:35:31 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@chaptergy commented on GitHub (Aug 4, 2021):

This is not a bug and will not be implemented, since continuously checking the database for any changes introduces a huge computational overhead which is in no way proportional to the usefulness of this. Only NPM should modify the database.
If you want to automate things, please just use the api which unfortunately not documented, but it shouldn't be too hard to extract this information from the JSON schema and using your browsers developer console.

<!-- gh-comment-id:892521003 --> @chaptergy commented on GitHub (Aug 4, 2021): This is not a bug and will not be implemented, since continuously checking the database for any changes introduces a huge computational overhead which is in no way proportional to the usefulness of this. Only NPM should modify the database. If you want to automate things, please just use [the api](https://github.com/jc21/nginx-proxy-manager/issues/341#issuecomment-839129341) which unfortunately not documented, but it shouldn't be too hard to extract this information from the JSON schema and using your browsers developer console.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1037
No description provided.