@php use App\Enums\ProxyTypes; @endphp
@if ($server->proxyType()) @if ($selectedProxy !== 'NONE')
@if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') @can('update', $server) @endcan @else Switch proxy @endif
@if ( $server->proxy->last_applied_settings && $server->proxy->last_saved_settings !== $server->proxy->last_applied_settings) @elseif ($server->hasPendingProxyConfiguration()) Restart the proxy to apply TLS certificate changes. @else

{{ str($server->proxyType())->title() }}

Saved and running configuration are synchronized.

@endif
@if ($redirectEnabled) @endif
@php $proxyTitle = $server->proxyType() === ProxyTypes::TRAEFIK->value ? 'Traefik configuration' : 'Caddy configuration'; @endphp @if ($server->proxyType() === ProxyTypes::TRAEFIK->value || $server->proxyType() === 'CADDY') @can('update', $server) @if ($proxySettings) @endif @endcan @if ($server->proxyType() === ProxyTypes::TRAEFIK->value) @if ($this->traefikVersionForWarning === 'latest') The proxy uses the latest tag. Pin traefik:{{ $this->latestTraefikVersion }} for predictable updates. @endif @if ($this->isTraefikOutdated) {{ $server->detected_traefik_version ? 'Running version' : 'Configured image' }} v{{ ltrim($this->traefikVersionForWarning, 'v') }}. The latest patch for this branch is {{ $this->latestTraefikVersion }}. Test the update before applying it to production servers. @endif @if ($this->newerTraefikBranchAvailable) {{ $this->newerTraefikBranchAvailable }} is available (latest patch: {{ $this->latestNewerTraefikVersion }}). Review the Traefik changelog for breaking changes before upgrading. @endif @elseif ($this->outdatedCaddyImage) @endif
@if ($proxySettings)
@endif
@endif
@elseif($selectedProxy === 'NONE') @can('update', $server) Switch proxy @endcan Configure and operate the proxy outside Coolify. @else @can('update', $server)
@foreach ([ ['value' => 'NONE', 'title' => 'Custom', 'description' => 'Manage the proxy outside Coolify.'], ['value' => 'TRAEFIK', 'title' => 'Traefik', 'description' => 'Use the default Coolify proxy.'], ['value' => 'CADDY', 'title' => 'Caddy', 'description' => 'Use the Coolify Caddy integration.'], ] as $proxyOption) @endforeach
@else You do not have permission to select a proxy for this server. @endcan
@endif @else @can('update', $server)
@foreach ([ ['value' => 'NONE', 'title' => 'Custom', 'description' => 'Manage the proxy outside Coolify.'], ['value' => 'TRAEFIK', 'title' => 'Traefik', 'description' => 'Use the default Coolify proxy.'], ['value' => 'CADDY', 'title' => 'Caddy', 'description' => 'Use the Coolify Caddy integration.'], ] as $proxyOption) @endforeach
@endcan
@endif