mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 01:15:51 +03:00
[PR #5348] feat: fix upstream host resolution edge case and support PEM paste in custom certificates #4186
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#4186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/5348
Author: @Eric-Terminal
Created: 2/23/2026
Status: 🔄 Open
Base:
develop← Head:develop📝 Commits (3)
f85272ffeat: add optional upstream hostname pre-resolution for /etc/hosts compatibilityc108bb2docs: document NPM_PRE_RESOLVE_UPSTREAM_HOSTS advanced option523e810feat: allow pasting PEM content for custom certificate upload📊 Changes
3 files changed (+271 additions, -101 deletions)
View changed files
📝
backend/internal/nginx.js(+69 -3)📝
docs/src/advanced-config/index.md(+24 -0)📝
frontend/src/modals/CustomCertificateModal.tsx(+178 -98)📄 Description
This PR addresses two issues:
1) Optional upstream pre-resolution for
forward_host(issue #5344)Problem:
Nginx variable-based upstream resolution may fail for hostnames that are only resolvable through container/system resolver paths (for example
extra_hostsmappings likehost.docker.internal).What changed:
NPM_PRE_RESOLVE_UPSTREAM_HOSTS(default: disabled)dns.lookup)forward_hostand custom locationforward_hostBehavior:
2) Allow direct PEM paste in Custom Certificate modal (issue #5347)
Problem:
Custom certificate flow previously required local file selection, which is inconvenient in remote/mobile/thin-client workflows.
What changed:
Fileobjects client-side)validateanduploadmultipart APIs are reused without contract changesBehavior:
Docs
NPM_PRE_RESOLVE_UPSTREAM_HOSTS🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.