[GH-ISSUE #233] Forward Hostnames longer than 50 characters are truncated #206

Closed
opened 2026-02-26 06:31:30 +03:00 by kerem · 7 comments
Owner

Originally created by @syntheticgoo on GitHub (Nov 9, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/233

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    YES
  • Are you sure you're not using someone else's docker image?
    YES
  • If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network?
    N/A

Describe the bug

  • A clear and concise description of what the bug is.
    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".
  • What version of Nginx Proxy Manager is reported on the login page?
    v2.0.14

To Reproduce
Steps to reproduce the behavior:

  1. Add a Proxy Host in the Dashbaord
  2. Enter a long Hostname
  3. Save Proxy Host
  4. View the truncated hostname Destination in the Proxy Host list

Expected behavior
Longer proxy host domains should be allowed in the UI.

Originally created by @syntheticgoo on GitHub (Nov 9, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/233 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? YES - Are you sure you're not using someone else's docker image? YES - If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? N/A **Describe the bug** - A clear and concise description of what the bug is. 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". - What version of Nginx Proxy Manager is reported on the login page? v2.0.14 **To Reproduce** Steps to reproduce the behavior: 1. Add a Proxy Host in the Dashbaord 2. Enter a long Hostname 3. Save Proxy Host 4. View the truncated hostname Destination in the Proxy Host list **Expected behavior** Longer proxy host domains should be allowed in the UI.
kerem 2026-02-26 06:31:30 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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 },

<!-- gh-comment-id:552130539 --> @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 }, `
Author
Owner

@capitangiaco commented on GitHub (May 31, 2020):

what's the right way to change it on a running server ?

<!-- gh-comment-id:636443376 --> @capitangiaco commented on GitHub (May 31, 2020): what's the right way to change it on a running server ?
Author
Owner

@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

<!-- gh-comment-id:636549219 --> @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
Author
Owner

@jc21 commented on GitHub (May 31, 2020):

Actually this was fixed in 2.2.4. #mondays

<!-- gh-comment-id:636549662 --> @jc21 commented on GitHub (May 31, 2020): Actually this was fixed in 2.2.4. #mondays
Author
Owner

@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*

<!-- gh-comment-id:636828476 --> @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*
Author
Owner

@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
Screen Shot 2020-06-02 at 2 05 41 pm

<!-- gh-comment-id:637258686 --> @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 ![Screen Shot 2020-06-02 at 2 05 41 pm](https://user-images.githubusercontent.com/1518257/83478816-30656a80-a4da-11ea-8db5-568b6324e953.png)
Author
Owner

@capitangiaco commented on GitHub (Jun 2, 2020):

Now it works! (from another laptop/browser) Probabily it was a browser related problem.
thanks

<!-- gh-comment-id:637385314 --> @capitangiaco commented on GitHub (Jun 2, 2020): Now it works! (from another laptop/browser) Probabily it was a browser related problem. thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#206
No description provided.