Skip to content

Commit 3af560c

Browse files
committed
switch to 255 limit to match db
1 parent 1d23d5c commit 3af560c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/schema/endpoints/proxy-hosts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
},
2525
"forward_host": {
2626
"type": "string",
27-
"minLength": 1
27+
"minLength": 1,
28+
"maxLength": 255
2829
},
2930
"forward_port": {
3031
"type": "integer",

frontend/js/app/nginx/proxy/form.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<div class="col-sm-5 col-md-5">
4545
<div class="form-group">
4646
<label class="form-label"><%- i18n('proxy-hosts', 'forward-host') %><span class="form-required">*</span></label>
47-
<input type="text" name="forward_host" class="form-control text-monospace" placeholder="" value="<%- forward_host %>" autocomplete="off" required>
47+
<input type="text" name="forward_host" class="form-control text-monospace" placeholder="" value="<%- forward_host %>" autocomplete="off" maxlength="255" required>
4848
</div>
4949
</div>
5050
<div class="col-sm-4 col-md-4">

0 commit comments

Comments
 (0)