added public https port setting

This commit is contained in:
Luke Pulverenti 2015-01-18 23:53:28 -05:00
parent 0f142fff89
commit 22c701d9a9
2 changed files with 9 additions and 2 deletions

View File

@ -24,9 +24,9 @@
<div class="fieldDescription">${LabelLocalHttpServerPortNumberHelp}</div>
</li>
<li>
<label for="txtPublicPort">${LabelPublicPort}</label>
<label for="txtPublicPort">${LabelPublicHttpPort}</label>
<input type="number" id="txtPublicPort" pattern="[0-9]*" required="required" min="1" />
<div class="fieldDescription">${LabelPublicPortHelp}</div>
<div class="fieldDescription">${LabelPublicHttpPortHelp}</div>
</li>
<li>
<label for="chkEnableUpnp">${LabelEnableAutomaticPortMap}</label>
@ -48,6 +48,11 @@
<input type="number" id="txtHttpsPort" pattern="[0-9]*" required="required" min="1" />
<div class="fieldDescription">${LabelHttpsPortHelp}</div>
</li>
<li>
<label for="txtPublicHttpsPort">${LabelPublicHttpsPort}</label>
<input type="number" id="txtPublicHttpsPort" pattern="[0-9]*" required="required" min="1" />
<div class="fieldDescription">${LabelPublicHttpsPortHelp}</div>
</li>
<li>
<label for="txtCertificatePath">${LabelCertificatePath}</label>
<input type="text" id="txtCertificatePath" />

View File

@ -4,6 +4,7 @@
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
$('#txtPublicPort', page).val(config.PublicPort);
$('#txtPublicHttpsPort', page).val(config.PublicHttpsPort);
$('#chkEnableHttps', page).checked(config.EnableHttps).checkboxradio('refresh');
$('#txtHttpsPort', page).val(config.HttpsPortNumber);
@ -44,6 +45,7 @@
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
config.PublicPort = $('#txtPublicPort', form).val();
config.PublicHttpsPort = $('#txtPublicHttpsPort', form).val();
config.EnableHttps = $('#chkEnableHttps', form).checked();
config.HttpsPortNumber = $('#txtHttpsPort', form).val();
config.CertificatePath = $('#txtCertificatePath', form).val();