nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Available upgrade notification

Open sopex opened this issue 1 month ago • 10 comments

Shows a notification on the footer when a new version is available!

Demo: Screenshot 2025-11-10 203644

Screenshot 2025-11-10 204508

PS: I don't believe it should be shown in the login screen, as it would only serve as an advertisement that it is an outdated version.

sopex avatar Nov 10 '25 17:11 sopex

Thanks for the contribution! One thing though, I think the hit to the github endpoint should happen in the backend API. This avoids any CSP problems someone might have by putting the admin ui behind a proxy and this would take advantage of any Proxy server someone might be using in the backend.

jc21 avatar Nov 11 '25 05:11 jc21

Thanks for the contribution! One thing though, I think the hit to the github endpoint should happen in the backend API. This avoids any CSP problems someone might have by putting the admin ui behind a proxy and this would take advantage of any Proxy server someone might be using in the backend.

For sure, would this make the trick?

sopex avatar Nov 11 '25 09:11 sopex

@jc21 @sopex improvements:

  • endpoint to return only latest version from github.
  • on the frontend use existing version from healthcheck to compare.
  • no need to reformat main.js and SiteFooter.tsx, eg. Keep tabs, in order to align to the rest of the repo.

7heMech avatar Nov 11 '25 14:11 7heMech

improvements:

  • edit endpoint to only return latest version from github.
  • on the frontend use existing version from healthcheck to compare.
  • Keep tabs instead of spaces, in order to align to the rest of the repo.

Please STOP editing the same comment over and over without any changes of substance. It's a bit excessive, I got your point. I don't necessarily agree, but I got it and any feedback is valuable.

On your last point, I use tabs. The file was previously using spaces and the "error" was introduced by my editor automatically being a de-alignment is a bit much here but sure I will fix it if it is required, just give me some time.

sopex avatar Nov 11 '25 18:11 sopex

Please STOP editing the same comment over and over without any changes of substance. It's a bit excessive, I got your point. I don't necessarily agree, but I got it and any feedback is valuable.

On your last point, I use tabs. The file was previously using spaces and the "error" was introduced by my editor automatically being a de-alignment is a bit much here but sure I will fix it if it is required, just give me some time.

Hey, it was a comment, now it's a review, I've edited it once I think, also it's unnecessarily fetching data twice.

7heMech avatar Nov 11 '25 19:11 7heMech

Please STOP editing the same comment over and over without any changes of substance. It's a bit excessive, I got your point. I don't necessarily agree, but I got it and any feedback is valuable.

On your last point, I use tabs. The file was previously using spaces and the "error" was introduced by my editor automatically being a de-alignment is a bit much here but sure I will fix it if it is required, just give me some time.

Hey, it was a comment, now it's a review, I've edited it once I think, also it's unnecessarily fetching data twice.

It was 7 edits and 1 review and now you are editing this too 😂 its honestly fine but I get worried by github emails thinking it's my day job.

sopex avatar Nov 11 '25 19:11 sopex

Please STOP editing the same comment over and over without any changes of substance. It's a bit excessive, I got your point. I don't necessarily agree, but I got it and any feedback is valuable.

On your last point, I use tabs. The file was previously using spaces and the "error" was introduced by my editor automatically being a de-alignment is a bit much here but sure I will fix it if it is required, just give me some time.

Hey, it was a comment, now it's a review, I've edited it once I think, also it's unnecessarily fetching data twice.

It was 7 edits and 1 review and now you are editing this too 😂 its honestly fine but I get worried by github emails thinking it's my day job.

Eh, interesting, I don't get emails from edits, you might need to tweak your settings, but I might've edited it a lot hahah 😅

7heMech avatar Nov 11 '25 21:11 7heMech

Try running a popular project. I have 3516 unread emails from github.

jc21 avatar Nov 12 '25 12:11 jc21

Hahaha, no thanks!

sopex avatar Nov 12 '25 13:11 sopex

tabs...

7heMech avatar Nov 12 '25 14:11 7heMech

tabs...

Dude, I am not smart enough to do it. The embedded on github visual studio does not see the difference. Jetbrain's IDEs and github desktop don't see the difference. And when I force it through notepad++ github sees the same space size as double even though it isn't so it again marks the lines as changed.

If it is worth it to you submit a PR on my fork and I will merge it so it will show up here. And also tell me how you did it.

sopex avatar Nov 12 '25 17:11 sopex

ok one sec (I did it)

7heMech avatar Nov 12 '25 18:11 7heMech

I recommend using VS Code, especially for Node.js. But all IDEs support showing whitespace and converting from spaces to tabs. A quick Google will solve that for you.

I do find it lacklustre that github's diff doesn't show whitespace properly though.

jc21 avatar Nov 12 '25 21:11 jc21

I recommend using VS Code, especially for Node.js. But all IDEs support showing whitespace and converting from spaces to tabs. A quick Google will solve that for you.

I do find it lacklustre that github's diff doesn't show whitespace properly though.

They do but github diff doesn't detect the difference :(

Anyway, do you think this is mergeable?

sopex avatar Nov 12 '25 21:11 sopex

They do but github diff doesn't detect the difference :(

Anyway, do you think this is mergeable?

I did make you a PR and github does see diff.

7heMech avatar Nov 12 '25 22:11 7heMech

Ah, I see what you meant.

7heMech avatar Nov 12 '25 22:11 7heMech

Yeah I'll merge it. I've got more feeback but it's easier if I make the changes myself before release.

jc21 avatar Nov 12 '25 22:11 jc21

Yeah I'll merge it. I've got more feeback but it's easier if I make the changes myself before release.

I am asking more in the sense of whether you need me to do anything. No pressure. Thank you for your great work, and for being patient with me ;)

sopex avatar Nov 12 '25 22:11 sopex

Docker Image for build 13 is available on DockerHub:

nginxproxymanager/nginx-proxy-manager-dev:pr-4906

[!NOTE] Ensure you backup your NPM instance before testing this image! Especially if there are database changes. This is a different docker image namespace than the official image.

[!WARNING] Changes and additions to DNS Providers require verification by at least 2 members of the community!

If you're interested, here's my rework patch: https://github.com/NginxProxyManager/nginx-proxy-manager/commit/cf7306e766ddb49fa165d63d4260fdb6f1e41e89

jc21 avatar Nov 13 '25 01:11 jc21

I think this will error, you changed to snake_case only in the response.

7heMech avatar Nov 13 '25 09:11 7heMech