coolify/resources/views/livewire/server/proxy.blade.php

40 lines
1.2 KiB
PHP
Raw Normal View History

2023-05-03 07:23:45 +02:00
<div>
<h2> Proxy </h2>
@if($this->server->extra_attributes->proxy)
2023-05-12 20:15:36 +02:00
<div class="mt-6">
2023-05-03 07:23:45 +02:00
<div>
Proxy type: {{ $this->server->extra_attributes->proxy }}
</div>
2023-05-12 20:15:36 +02:00
<div id="proxy_options" x-init="$wire.checkProxySettingsInSync()" class="relative w-fit">
{{-- Proxy is being checked against DB information --}}
@if(! $this->is_check_proxy_complete)
@include('livewire.server._proxy.loading')
@endif
@if($this->is_check_proxy_complete && (! $this->is_proxy_settings_in_sync) )
@include('livewire.server._proxy.problems')
@endif
@include('livewire.server._proxy.options')
</div>
2023-05-03 07:23:45 +02:00
</div>
@else
2023-05-12 20:15:36 +02:00
{{-- There is no Proxy installed --}}
2023-05-03 07:23:45 +02:00
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>