@php use App\Enums\ProxyTypes; @endphp
@if ($server->proxyType())
@if ($selectedProxy !== 'NONE')

Configuration

@if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') @can('update', $server) @endcan @else Switch Proxy @endif Save
Configure your proxy settings and advanced options.

Advanced

@if ($redirectEnabled) @endif
@php $proxyTitle = $server->proxyType() === ProxyTypes::TRAEFIK->value ? 'Traefik (Coolify Proxy)' : 'Caddy (Coolify Proxy)'; @endphp @if ($server->proxyType() === ProxyTypes::TRAEFIK->value || $server->proxyType() === 'CADDY')

{{ $proxyTitle }}

@if ($proxySettings) @can('update', $server) @endcan @endif
@endif @if ( $server->proxy->last_applied_settings && $server->proxy->last_saved_settings !== $server->proxy->last_applied_settings)
Configuration out of sync. Restart the proxy to apply the new configurations.
@endif
@if ($proxySettings)
@endif
@elseif($selectedProxy === 'NONE')

Configuration

@can('update', $server) Switch Proxy @endcan
Custom (None) Proxy Selected
@else

Configuration

@can('update', $server) Switch Proxy @endcan
@endif @else

Configuration

Select a proxy you would like to use on this server.
@can('update', $server)
Custom (None) Traefik Caddy {{-- Nginx --}}
@else
You don't have permission to configure proxy settings for this server.
@endcan
@endif