2017-12-15 03:05:26 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
@include('partials/admin.settings.nav', ['activeTab' => 'advanced'])
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Advanced Settings
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>Advanced Settings<small>Configure advanced settings for Pterodactyl.</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li class="active">Settings</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@yield('settings::nav')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<form action="" method="POST">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">reCAPTCHA</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-4">
|
|
|
|
<label class="control-label">Status</label>
|
|
|
|
<div>
|
|
|
|
<select class="form-control" name="recaptcha:enabled">
|
|
|
|
<option value="true">Enabled</option>
|
|
|
|
<option value="false" @if(old('recaptcha:enabled', config('recaptcha.enabled')) == '0') selected @endif>Disabled</option>
|
|
|
|
</select>
|
|
|
|
<p class="text-muted small">If enabled, login forms and password reset forms will do a silent captcha check and display a visible captcha if needed.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-4">
|
2018-03-08 15:21:55 +00:00
|
|
|
<label class="control-label">Site Key</label>
|
2017-12-15 03:05:26 +00:00
|
|
|
<div>
|
2018-03-08 15:21:55 +00:00
|
|
|
<input type="text" required class="form-control" name="recaptcha:website_key" value="{{ old('recaptcha:website_key', config('recaptcha.website_key')) }}">
|
2017-12-15 03:05:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-4">
|
2018-03-08 15:21:55 +00:00
|
|
|
<label class="control-label">Secret Key</label>
|
2017-12-15 03:05:26 +00:00
|
|
|
<div>
|
2018-03-08 15:21:55 +00:00
|
|
|
<input type="text" required class="form-control" name="recaptcha:secret_key" value="{{ old('recaptcha:secret_key', config('recaptcha.secret_key')) }}">
|
|
|
|
<p class="text-muted small">Used for communication between your site and Google. Be sure to keep it a secret.</p>
|
2017-12-15 03:05:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@if($showRecaptchaWarning)
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="alert alert-warning no-margin">
|
|
|
|
You are currently using reCAPTCHA keys that were shipped with this Panel. For improved security it is recommended to <a href="https://www.google.com/recaptcha/admin">generate new invisible reCAPTCHA keys</a> that tied specifically to your website.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">HTTP Connections</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label class="control-label">Connection Timeout</label>
|
|
|
|
<div>
|
|
|
|
<input type="number" required class="form-control" name="pterodactyl:guzzle:connect_timeout" value="{{ old('pterodactyl:guzzle:connect_timeout', config('pterodactyl.guzzle.connect_timeout')) }}">
|
|
|
|
<p class="text-muted small">The amount of time in seconds to wait for a connection to be opened before throwing an error.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label class="control-label">Request Timeout</label>
|
|
|
|
<div>
|
|
|
|
<input type="number" required class="form-control" name="pterodactyl:guzzle:timeout" value="{{ old('pterodactyl:guzzle:timeout', config('pterodactyl.guzzle.timeout')) }}">
|
|
|
|
<p class="text-muted small">The amount of time in seconds to wait for a request to be completed before throwing an error.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-footer">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<button type="submit" name="_method" value="PATCH" class="btn btn-sm btn-primary pull-right">Save</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|