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