Skip to content

Vipergts450 custom ___location patch #1081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 7, 2021
Merged

Vipergts450 custom ___location patch #1081

merged 8 commits into from
Jun 7, 2021

Conversation

vipergts450
Copy link
Contributor

@vipergts450 vipergts450 commented May 8, 2021

Possibly resolves jc21#148 jc21#590 but needs a lot of testing as I roughed this together. Probably can replace the top block with a modified
include conf.d/include/proxy.conf;

Allows custom locations to follow the rules set on the primary page such as Websockets, forcing SSL, HSTS, etc.

Made a couple of amendments to /backend/templates/_location.conf and /backend/internal/nginx.js to allow the custom ___location templates to have includes which should flesh out their configs and follow the settings of the main configuration page. Needs a lot of testing.

Adds ability for custom ___location templates to handle includes
Amend renderLocations to pass more host parameters into the custom locations to match the requirements set for the default ___location. This will apply all parameters set in the UI to all custom locations.
Allow more of the main host parameters into the custom ___location configuration and reorder to make more sense.
@jc21
Copy link
Member

jc21 commented May 8, 2021

This is an automated message from CI:

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

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

@jc21 jc21 added the requires-verification Waiting for one or more people to confirm the fix label May 9, 2021
@vipergts450
Copy link
Contributor Author

Have been running this patch at home on my network in production since I submitted this (I like to live dangerously) and it has been working great so far.

@jc21
Copy link
Member

jc21 commented Jun 7, 2021

This is an automated message from CI:

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

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

@jc21 jc21 merged commit f575400 into NginxProxyManager:develop Jun 7, 2021
@vipergts450 vipergts450 deleted the vipergts450-custom_location-patch branch June 9, 2021 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires-verification Waiting for one or more people to confirm the fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy Host Custom Locations do not apply Access Lists
2 participants