mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #233] Forward Hostnames longer than 50 characters are truncated #206
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#206
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?
Originally created by @syntheticgoo on GitHub (Nov 9, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/233
Checklist
jc21/nginx-proxy-manager:latestdocker image?YES
YES
N/A
Describe the bug
In the admin dashboard for proxy host, if you edit/add a host with a domain longer than 50 characters in the 'Forward Hostname / IP' field, it is truncated. If you edit the full hostname manually in the database and then attempt to re-save using the UI dashboard, a popup message appears with the message: "data.forward_host should NOT be longer than 50 characters".
v2.0.14
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Longer proxy host domains should be allowed in the UI.
@syntheticgoo commented on GitHub (Nov 9, 2019):
The issue is this setting in src/backend/schema//endpoints/proxy-hosts.json
"forward_host": { "type": "string", "minLength": 1, "maxLength": 50 },@capitangiaco commented on GitHub (May 31, 2020):
what's the right way to change it on a running server ?
@jc21 commented on GitHub (May 31, 2020):
It's baked in to the image, so you either have to wait for a fix or find the file in the docker image and create your own docker image that extends from mine, overwrite the file and run that. Might be easier to wait. I'll take a look today
@jc21 commented on GitHub (May 31, 2020):
Actually this was fixed in 2.2.4. #mondays
@capitangiaco commented on GitHub (Jun 1, 2020):
I am on 2.3.0, and in the file: /var/lib/docker/overlay2/26fae2ff7dcca2d17edf07ff67ae3590c909a408ed34915151543993d53058f5/merged/app/schema/endpoints/proxy-hosts.json line seems corrected: "forward_host": { "type": "string", "minLength": 1, "maxLength": 255 },
But I cannot insert url longer than 50 characters in Forward Hostname / IP*
@jc21 commented on GitHub (Jun 2, 2020):
Is this for a proxy host or a redirection host or other? I was able to create more than 50 chars

@capitangiaco commented on GitHub (Jun 2, 2020):
Now it works! (from another laptop/browser) Probabily it was a browser related problem.
thanks