Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/settings/advanced.blade.php
7461 views
1
@extends('layouts.admin')
2
@include('partials/admin.settings.nav', ['activeTab' => 'advanced'])
3
4
@section('title')
5
Advanced Settings
6
@endsection
7
8
@section('content-header')
9
<h1>Advanced Settings<small>Configure advanced settings for Pterodactyl.</small></h1>
10
<ol class="breadcrumb">
11
<li><a href="{{ route('admin.index') }}">Admin</a></li>
12
<li class="active">Settings</li>
13
</ol>
14
@endsection
15
16
@section('content')
17
@yield('settings::nav')
18
<div class="row">
19
<div class="col-xs-12">
20
<form action="" method="POST">
21
<div class="box">
22
<div class="box-header with-border">
23
<h3 class="box-title">reCAPTCHA</h3>
24
</div>
25
<div class="box-body">
26
<div class="row">
27
<div class="form-group col-md-4">
28
<label class="control-label">Status</label>
29
<div>
30
<select class="form-control" name="recaptcha:enabled">
31
<option value="true">Enabled</option>
32
<option value="false" @if(old('recaptcha:enabled', config('recaptcha.enabled')) == '0') selected @endif>Disabled</option>
33
</select>
34
<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>
35
</div>
36
</div>
37
<div class="form-group col-md-4">
38
<label class="control-label">Site Key</label>
39
<div>
40
<input type="text" required class="form-control" name="recaptcha:website_key" value="{{ old('recaptcha:website_key', config('recaptcha.website_key')) }}">
41
</div>
42
</div>
43
<div class="form-group col-md-4">
44
<label class="control-label">Secret Key</label>
45
<div>
46
<input type="text" required class="form-control" name="recaptcha:secret_key" value="{{ old('recaptcha:secret_key', config('recaptcha.secret_key')) }}">
47
<p class="text-muted small">Used for communication between your site and Google. Be sure to keep it a secret.</p>
48
</div>
49
</div>
50
</div>
51
@if($showRecaptchaWarning)
52
<div class="row">
53
<div class="col-xs-12">
54
<div class="alert alert-warning no-margin">
55
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.
56
</div>
57
</div>
58
</div>
59
@endif
60
</div>
61
</div>
62
<div class="box">
63
<div class="box-header with-border">
64
<h3 class="box-title">HTTP Connections</h3>
65
</div>
66
<div class="box-body">
67
<div class="row">
68
<div class="form-group col-md-6">
69
<label class="control-label">Connection Timeout</label>
70
<div>
71
<input type="number" required class="form-control" name="pterodactyl:guzzle:connect_timeout" value="{{ old('pterodactyl:guzzle:connect_timeout', config('pterodactyl.guzzle.connect_timeout')) }}">
72
<p class="text-muted small">The amount of time in seconds to wait for a connection to be opened before throwing an error.</p>
73
</div>
74
</div>
75
<div class="form-group col-md-6">
76
<label class="control-label">Request Timeout</label>
77
<div>
78
<input type="number" required class="form-control" name="pterodactyl:guzzle:timeout" value="{{ old('pterodactyl:guzzle:timeout', config('pterodactyl.guzzle.timeout')) }}">
79
<p class="text-muted small">The amount of time in seconds to wait for a request to be completed before throwing an error.</p>
80
</div>
81
</div>
82
</div>
83
</div>
84
</div>
85
<div class="box">
86
<div class="box-header with-border">
87
<h3 class="box-title">Automatic Allocation Creation</h3>
88
</div>
89
<div class="box-body">
90
<div class="row">
91
<div class="form-group col-md-4">
92
<label class="control-label">Status</label>
93
<div>
94
<select class="form-control" name="pterodactyl:client_features:allocations:enabled">
95
<option value="false">Disabled</option>
96
<option value="true" @if(old('pterodactyl:client_features:allocations:enabled', config('pterodactyl.client_features.allocations.enabled'))) selected @endif>Enabled</option>
97
</select>
98
<p class="text-muted small">If enabled users will have the option to automatically create new allocations for their server via the frontend.</p>
99
</div>
100
</div>
101
<div class="form-group col-md-4">
102
<label class="control-label">Starting Port</label>
103
<div>
104
<input type="number" class="form-control" name="pterodactyl:client_features:allocations:range_start" value="{{ old('pterodactyl:client_features:allocations:range_start', config('pterodactyl.client_features.allocations.range_start')) }}">
105
<p class="text-muted small">The starting port in the range that can be automatically allocated.</p>
106
</div>
107
</div>
108
<div class="form-group col-md-4">
109
<label class="control-label">Ending Port</label>
110
<div>
111
<input type="number" class="form-control" name="pterodactyl:client_features:allocations:range_end" value="{{ old('pterodactyl:client_features:allocations:range_end', config('pterodactyl.client_features.allocations.range_end')) }}">
112
<p class="text-muted small">The ending port in the range that can be automatically allocated.</p>
113
</div>
114
</div>
115
</div>
116
</div>
117
</div>
118
<div class="box box-primary">
119
<div class="box-footer">
120
{{ csrf_field() }}
121
<button type="submit" name="_method" value="PATCH" class="btn btn-sm btn-primary pull-right">Save</button>
122
</div>
123
</div>
124
</form>
125
</div>
126
</div>
127
@endsection
128
129