Skip to content

Conversation

@chaptergy
Copy link
Collaborator

@chaptergy chaptergy commented Nov 4, 2021

  • Renames $upstream to $targetUri in ngix config templates to prevent collision
  • Does not append $request_uri to the url of a location if the location contains an opening bracket (, a closing bracket ( and a tilde ~ signaling a regex capture group
  • Does not append $request_uri if it is basically empty, so just a slash / as this would break domain-only requests (requests without a path)

Fixes #1319

@jc21
Copy link
Member

jc21 commented Nov 4, 2021

This is an automated message from CI:

Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1559

Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

@dirtymike0330
Copy link

Hi - sorry to be "that person", but I'm not well versed in github or linux and just use unRAID + dockers to manage my media server. Do I have to do anything special to get this issue corrected or will this ultimately be an update that gets pushed out automatically? Thank you

@chaptergy
Copy link
Collaborator Author

@rainman369 See https://nginxproxymanager.com/upgrading. But since you use unraid, it might be different, I have no idea how unraid works. Maybe something like this? But first you have to wait until this is merged and a new release has been published. You can use the watch button at the top of the github page and select custom to select notifications only on new releases.

@dirtymike0330
Copy link

@rainman369 See https://nginxproxymanager.com/upgrading. But since you use unraid, it might be different, I have no idea how unraid works. Maybe something like this? But first you have to wait until this is merged and a new release has been published. You can use the watch button at the top of the github page and select custom to select notifications only on new releases.

Ah yes, I guess waiting for the release to actually come out would help :D Thank you!

@jc21
Copy link
Member

jc21 commented Nov 6, 2021

This is an automated message from CI:

Docker Image for build 2 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1559

Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

@jc21 jc21 merged commit 432062e into develop Nov 8, 2021
@jc21 jc21 deleted the variable-fix-custom-locations branch November 8, 2021 03:39
@causefx
Copy link

causefx commented Nov 12, 2021

@chaptergy I think you inadvertently caused the same issue by naming both location and proxy variables the same variable. Those need to be different... I would suggest keeping $targetUri for one of those and changing the other to whatever you want...

Shall I open another issue up?

@chaptergy
Copy link
Collaborator Author

@causefx I am assuming that variables should be scoped to their respective location block, however there seems to be no documentation on that. But since nginx has lots of weird little features it's entirely possible this is not the case.
However in #1578 all this mess with the variables has been reverted anyways, since it's not working as intended either way due to other nginx limitations.

@causefx
Copy link

causefx commented Nov 12, 2021

yeah i hear ya man. either way no worries :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth_request module not behaving as expected with Organizr

5 participants