Require node use SSL if Panel is using SSL. closes #806

This commit is contained in:
Dane Everitt 2017-12-30 16:54:07 -06:00
parent e4feee6932
commit 89dbb9d0d9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 8 additions and 5 deletions

View file

@ -72,11 +72,15 @@
<label for="pSSLTrue"> Use SSL Connection</label>
</div>
<div class="radio radio-danger radio-inline">
<input type="radio" id="pSSLFalse" value="http" name="scheme">
<input type="radio" id="pSSLFalse" value="http" name="scheme" @if(request()->isSecure()) disabled @endif>
<label for="pSSLFalse"> Use HTTP Connection</label>
</div>
</div>
<p class="text-muted small">In most cases you should select to use a SSL connection. If using an IP Address or you do not wish to use SSL at all, select a HTTP connection.</p>
@if(request()->isSecure())
<p class="text-danger small">Your Panel is currently configured to use a secure connection. In order for browsers to connect to your node it <strong>must</strong> use a SSL connection.</p>
@else
<p class="text-muted small">In most cases you should select to use a SSL connection. If using an IP Address or you do not wish to use SSL at all, select a HTTP connection.</p>
@endif
</div>
<div class="form-group">
<label class="form-label">Behind Proxy</label>