Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/nodes/view/configuration.blade.php
7461 views
1
@extends('layouts.admin')
2
3
@section('title')
4
{{ $node->name }}: Configuration
5
@endsection
6
7
@section('content-header')
8
<h1>{{ $node->name }}<small>Your daemon configuration file.</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li><a href="{{ route('admin.nodes') }}">Nodes</a></li>
12
<li><a href="{{ route('admin.nodes.view', $node->id) }}">{{ $node->name }}</a></li>
13
<li class="active">Configuration</li>
14
</ol>
15
@endsection
16
17
@section('content')
18
<div class="row">
19
<div class="col-xs-12">
20
<div class="nav-tabs-custom nav-tabs-floating">
21
<ul class="nav nav-tabs">
22
<li><a href="{{ route('admin.nodes.view', $node->id) }}">About</a></li>
23
<li><a href="{{ route('admin.nodes.view.settings', $node->id) }}">Settings</a></li>
24
<li class="active"><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
25
<li><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
26
<li><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
27
</ul>
28
</div>
29
</div>
30
</div>
31
<div class="row">
32
<div class="col-sm-8">
33
<div class="box box-primary">
34
<div class="box-header with-border">
35
<h3 class="box-title">Configuration File</h3>
36
</div>
37
<div class="box-body">
38
<pre class="no-margin">{{ $node->getYamlConfiguration() }}</pre>
39
</div>
40
<div class="box-footer">
41
<p class="no-margin">This file should be placed in your daemon's root directory (usually <code>/etc/pterodactyl</code>) in a file called <code>config.yml</code>.</p>
42
</div>
43
</div>
44
</div>
45
<div class="col-sm-4">
46
<div class="box box-success">
47
<div class="box-header with-border">
48
<h3 class="box-title">Auto-Deploy</h3>
49
</div>
50
<div class="box-body">
51
<p class="text-muted small">
52
Use the button below to generate a custom deployment command that can be used to configure
53
wings on the target server with a single command.
54
</p>
55
</div>
56
<div class="box-footer">
57
<button type="button" id="configTokenBtn" class="btn btn-sm btn-default" style="width:100%;">Generate Token</button>
58
</div>
59
</div>
60
</div>
61
</div>
62
@endsection
63
64
@section('footer-scripts')
65
@parent
66
<script>
67
$('#configTokenBtn').on('click', function (event) {
68
$.ajax({
69
method: 'POST',
70
url: '{{ route('admin.nodes.view.configuration.token', $node->id) }}',
71
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
72
}).done(function (data) {
73
swal({
74
type: 'success',
75
title: 'Token created.',
76
text: '<p>To auto-configure your node run the following command:<br /><small><pre>cd /etc/pterodactyl && sudo wings configure --panel-url {{ config('app.url') }} --token ' + data.token + ' --node ' + data.node + '{{ config('app.debug') ? ' --allow-insecure' : '' }}</pre></small></p>',
77
html: true
78
})
79
}).fail(function () {
80
swal({
81
title: 'Error',
82
text: 'Something went wrong creating your token.',
83
type: 'error'
84
});
85
});
86
});
87
</script>
88
@endsection
89
90