This commit is contained in:
Joao Patricio
2023-05-03 06:23:45 +01:00
parent e7763f3b73
commit 00a8c847e9
17 changed files with 621 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<x-layout>
<h1>Servers</h1>
@forelse ($servers as $server)
<a href="{{ route('project.environments', [$server->uuid]) }}">{{ data_get($server, 'name') }}</a>
<a href="{{ route('server.show', [$server->uuid]) }}">{{ data_get($server, 'name') }}</a>
@empty
<p>No servers found.</p>
@endforelse

View File

@@ -0,0 +1,17 @@
<div class="mt-8">
@isset($this->activity)
<span>Activity: {{ $this->activity?->id }}</span>
<span>Status: {{ $this->activity?->properties->get('status') }}</span>
<pre
class="h-[400px] flex flex-col-reverse w-full bg-[#cbcbcb] overflow-y-scroll"
@if($isPollingActive)
wire:poll.750ms="polling"
@endif
>{{
\App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($this->activity)
}}</pre>
@else
Not monitoring any activity.
@endisset
</div>

View File

@@ -0,0 +1,30 @@
<div>
<h2> Proxy </h2>
@if($this->server->extra_attributes->proxy)
<div class="mt-12">
<div>
Proxy type: {{ $this->server->extra_attributes->proxy }}
</div>
<div class="mt-12"> Features in W11.</div>
<ul>
<li>Edit config file</li>
<li>Enable dashboard (blocking port by firewall)</li>
<li>Dashboard access - login/password</li>
<li>Setup host for Traefik Dashboard</li>
<li>Visit (nav to traefik dashboard)</li>
</ul>
</div>
@else
No proxy installed.
<select wire:model="selectedProxy">
<option value="{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}">
{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}
</option>
</select>
<button wire:click="runInstallProxy">Install Proxy</button>
@endif
<livewire:activity-monitor />
</div>

View File

@@ -0,0 +1,5 @@
<x-layout>
<h1> {{ $server->name }}</h1>
<livewire:server.proxy :server="$server"/>
</x-layout>