2026-07-08 07:42:52 +00:00
|
|
|
<div class="pb-0 md:pb-6">
|
2025-11-13 12:38:57 +00:00
|
|
|
<x-slide-over @startproxy.window="slideOverOpen = true" fullScreen closeWithX>
|
2025-06-11 10:02:39 +00:00
|
|
|
<x-slot:title>Proxy Startup Logs</x-slot:title>
|
|
|
|
|
<x-slot:content>
|
2025-12-03 15:33:33 +00:00
|
|
|
@if ($server->id === 0)
|
|
|
|
|
<div class="mb-4 p-3 text-sm bg-warning/10 border border-warning/30 rounded-lg text-warning">
|
|
|
|
|
<span class="font-semibold">Note:</span> This is the localhost server where Coolify runs.
|
|
|
|
|
During proxy restart, the connection may be temporarily lost.
|
|
|
|
|
If logs stop updating, please refresh the browser after a few minutes.
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2025-06-11 10:02:39 +00:00
|
|
|
<livewire:activity-monitor header="Logs" fullHeight />
|
|
|
|
|
</x-slot:content>
|
|
|
|
|
</x-slide-over>
|
2026-07-08 07:42:52 +00:00
|
|
|
<h1>Server</h1>
|
|
|
|
|
<div class="pt-2 pb-4 md:pb-10">
|
|
|
|
|
<div class="flex-col md:flex-row flex gap-2">
|
2026-07-11 19:35:10 +00:00
|
|
|
<div data-testid="server-subtitle" class="text-xs lg:text-sm min-w-0 truncate text-neutral-600 dark:text-neutral-400">
|
2026-07-08 07:42:52 +00:00
|
|
|
{{ data_get($server, 'name') }}
|
|
|
|
|
</div>
|
2026-07-03 08:08:55 +00:00
|
|
|
@php
|
|
|
|
|
$showSentinelStatus = $server->isFunctional() && $server->isSentinelEnabled();
|
|
|
|
|
@endphp
|
|
|
|
|
@if ($server->proxySet() || $showSentinelStatus)
|
2026-07-08 07:42:52 +00:00
|
|
|
<div data-testid="server-status-summary" class="flex flex-wrap items-center gap-1">
|
2026-06-05 11:31:20 +00:00
|
|
|
@if ($server->proxySet())
|
|
|
|
|
<div class="flex items-center gap-1">
|
|
|
|
|
@if ($proxyStatus === 'running')
|
|
|
|
|
<x-status-badge label="Proxy" status="Running" type="success" />
|
|
|
|
|
@elseif ($proxyStatus === 'restarting')
|
|
|
|
|
<x-status-badge label="Proxy" status="Restarting" type="warning" />
|
|
|
|
|
@elseif ($proxyStatus === 'stopping')
|
|
|
|
|
<x-status-badge label="Proxy" status="Stopping" type="warning" />
|
|
|
|
|
@elseif ($proxyStatus === 'starting')
|
|
|
|
|
<x-status-badge label="Proxy" status="Starting" type="warning" />
|
|
|
|
|
@elseif (data_get($server, 'proxy.force_stop'))
|
|
|
|
|
<x-status-badge wire:loading.remove wire:target="checkProxy" label="Proxy"
|
|
|
|
|
status="Force stopped" type="error" />
|
|
|
|
|
@elseif ($proxyStatus === 'exited')
|
|
|
|
|
<x-status-badge wire:loading.remove wire:target="checkProxy" label="Proxy" status="Exited"
|
|
|
|
|
type="error" />
|
|
|
|
|
@endif
|
|
|
|
|
<x-status-badge wire:loading wire:target="checkProxy" label="Proxy" status="Checking..."
|
|
|
|
|
type="warning" />
|
2025-06-13 05:16:44 +00:00
|
|
|
</div>
|
2025-06-11 10:02:39 +00:00
|
|
|
@endif
|
2026-07-03 08:08:55 +00:00
|
|
|
@if ($showSentinelStatus)
|
2026-06-05 11:31:20 +00:00
|
|
|
@if ($server->isSentinelLive())
|
|
|
|
|
<x-status-badge label="Sentinel" status="In sync" type="success" />
|
|
|
|
|
@else
|
|
|
|
|
<x-status-badge label="Sentinel" status="Out of sync" type="error" />
|
|
|
|
|
@endif
|
2025-06-06 12:47:54 +00:00
|
|
|
@endif
|
2026-06-05 11:31:20 +00:00
|
|
|
@if ($server->proxySet())
|
|
|
|
|
<x-status-badge as="button" wire:target="checkProxyStatus" wire:loading.attr="disabled"
|
|
|
|
|
wire:click='checkProxyStatus' status="Refresh" type="neutral" title="Refresh Status"
|
|
|
|
|
aria-label="Refresh proxy status"
|
|
|
|
|
class="min-w-[4.5rem] justify-center cursor-pointer border-transparent hover:bg-neutral-200 disabled:cursor-wait disabled:opacity-70 dark:hover:bg-coolgray-300" />
|
2026-04-14 13:20:01 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
2026-06-05 11:31:20 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
2025-06-06 12:47:54 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="navbar-main">
|
|
|
|
|
<nav
|
2026-07-08 07:42:52 +00:00
|
|
|
class="scrollbar hidden min-h-10 w-full flex-nowrap items-center gap-6 overflow-x-scroll overflow-y-hidden pb-1 whitespace-nowrap md:flex md:w-auto md:overflow-visible">
|
2025-11-18 09:29:04 +00:00
|
|
|
<a class="{{ request()->routeIs('server.show') ? 'dark:text-white' : '' }}" href="{{ route('server.show', [
|
|
|
|
|
'server_uuid' => data_get($server, 'uuid'),
|
2025-12-17 11:09:13 +00:00
|
|
|
]) }}" {{ wireNavigate() }}>
|
2025-06-25 08:56:35 +00:00
|
|
|
Configuration
|
2025-06-06 12:47:54 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
@if (!$server->isSwarmWorker() && !$server->settings->is_build_server)
|
2026-04-14 13:20:01 +00:00
|
|
|
<a class="{{ request()->routeIs('server.proxy') || request()->routeIs('server.proxy.*') ? 'dark:text-white' : '' }} flex items-center gap-1" href="{{ route('server.proxy', [
|
2025-06-06 12:47:54 +00:00
|
|
|
'server_uuid' => data_get($server, 'uuid'),
|
2025-12-17 11:09:13 +00:00
|
|
|
]) }}" {{ wireNavigate() }}>
|
2025-11-18 09:29:04 +00:00
|
|
|
Proxy
|
|
|
|
|
@if ($this->hasTraefikOutdated)
|
|
|
|
|
<svg class="w-4 h-4 text-warning" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path fill="currentColor"
|
|
|
|
|
d="M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12" />
|
2026-04-14 13:20:01 +00:00
|
|
|
</svg>
|
|
|
|
|
@endif
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
2026-06-15 10:31:30 +00:00
|
|
|
@if ($server->isFunctional() && !$server->isSwarm() && !$server->settings->is_build_server && auth()->user()?->can('viewSentinel', $server))
|
2026-04-14 13:20:01 +00:00
|
|
|
<a class="{{ request()->routeIs('server.sentinel') || request()->routeIs('server.sentinel.*') ? 'dark:text-white' : '' }} flex items-center gap-1" href="{{ route('server.sentinel', [
|
|
|
|
|
'server_uuid' => data_get($server, 'uuid'),
|
|
|
|
|
]) }}" {{ wireNavigate() }}>
|
|
|
|
|
Sentinel
|
|
|
|
|
@if ($server->isSentinelEnabled() && !$server->isSentinelLive())
|
|
|
|
|
<svg class="w-4 h-4 text-warning" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path fill="currentColor"
|
|
|
|
|
d="M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12" />
|
2025-11-18 09:29:04 +00:00
|
|
|
</svg>
|
|
|
|
|
@endif
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
<a class="{{ request()->routeIs('server.resources') ? 'dark:text-white' : '' }}" href="{{ route('server.resources', [
|
|
|
|
|
'server_uuid' => data_get($server, 'uuid'),
|
2025-12-17 11:09:13 +00:00
|
|
|
]) }}" {{ wireNavigate() }}>
|
2025-06-25 08:56:35 +00:00
|
|
|
Resources
|
2025-06-06 12:47:54 +00:00
|
|
|
</a>
|
2025-08-26 08:27:31 +00:00
|
|
|
@can('canAccessTerminal')
|
2025-11-18 09:29:04 +00:00
|
|
|
<a class="{{ request()->routeIs('server.command') ? 'dark:text-white' : '' }}" href="{{ route('server.command', [
|
|
|
|
|
'server_uuid' => data_get($server, 'uuid'),
|
|
|
|
|
]) }}">
|
|
|
|
|
Terminal
|
|
|
|
|
</a>
|
2025-08-26 08:27:31 +00:00
|
|
|
@endcan
|
|
|
|
|
@can('update', $server)
|
2025-11-18 09:29:04 +00:00
|
|
|
<a class="{{ request()->routeIs('server.security.patches') ? 'dark:text-white' : '' }}" href="{{ route('server.security.patches', [
|
|
|
|
|
'server_uuid' => data_get($server, 'uuid'),
|
2025-12-17 11:09:13 +00:00
|
|
|
]) }}" {{ wireNavigate() }}>
|
2025-11-18 09:29:04 +00:00
|
|
|
Security
|
|
|
|
|
</a>
|
2025-08-26 08:27:31 +00:00
|
|
|
@endcan
|
2025-06-06 12:47:54 +00:00
|
|
|
</nav>
|
2026-07-08 07:42:52 +00:00
|
|
|
<div class="order-first w-full md:order-last md:w-auto">
|
2025-06-06 12:47:54 +00:00
|
|
|
<div>
|
|
|
|
|
@if ($server->proxySet())
|
2026-02-25 14:37:04 +00:00
|
|
|
@can('manageProxy', $server)
|
2026-07-08 07:42:52 +00:00
|
|
|
<div id="server-mobile-actions" class="mt-2 mb-3 md:hidden">
|
|
|
|
|
<div class="mb-1 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:text-neutral-400">Actions</div>
|
2025-06-11 10:02:39 +00:00
|
|
|
@if ($proxyStatus === 'running')
|
2026-07-08 07:42:52 +00:00
|
|
|
<div class="flex flex-nowrap gap-2 overflow-x-auto">
|
|
|
|
|
<button type="button" class="button shrink-0"
|
|
|
|
|
@click="document.getElementById('server-mobile-restart-proxy-trigger')?.click()">
|
|
|
|
|
<svg class="w-5 h-5 dark:text-warning" viewBox="0 0 24 24"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
|
|
|
|
stroke-width="2">
|
|
|
|
|
<path d="M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747" />
|
|
|
|
|
<path d="M20 4v5h-5" />
|
|
|
|
|
</g>
|
|
|
|
|
</svg>
|
|
|
|
|
Restart Proxy
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="button shrink-0 text-error"
|
|
|
|
|
@click="document.getElementById('server-mobile-stop-proxy-trigger')?.click()">
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" viewBox="0 0 24 24"
|
|
|
|
|
stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round">
|
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
|
|
|
<path d="M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z">
|
|
|
|
|
</path>
|
|
|
|
|
<path
|
|
|
|
|
d="M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z">
|
|
|
|
|
</path>
|
|
|
|
|
</svg>
|
|
|
|
|
Stop Proxy
|
|
|
|
|
</button>
|
|
|
|
|
@if ($traefikDashboardAvailable)
|
|
|
|
|
<a class="button shrink-0" target="_blank" href="http://{{ $serverIp }}:8080">
|
|
|
|
|
Traefik Dashboard
|
|
|
|
|
<x-external-link />
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<x-modal-confirmation title="Confirm Proxy Restart?" buttonTitle="Restart Proxy"
|
|
|
|
|
submitAction="restart" :actions="[
|
|
|
|
|
'This proxy will be stopped and started again.',
|
|
|
|
|
'All resources hosted on coolify will be unavailable during the restart.',
|
|
|
|
|
]" :confirmWithText="false" :confirmWithPassword="false" step2ButtonText="Restart Proxy"
|
|
|
|
|
:dispatchEvent="true" dispatchEventType="restartEvent">
|
|
|
|
|
<x-slot:trigger>
|
|
|
|
|
<button id="server-mobile-restart-proxy-trigger" type="button" class="hidden">Restart Proxy</button>
|
|
|
|
|
</x-slot:trigger>
|
|
|
|
|
</x-modal-confirmation>
|
|
|
|
|
<x-modal-confirmation title="Confirm Proxy Stopping?" buttonTitle="Stop Proxy"
|
|
|
|
|
submitAction="stop(true)" :actions="[
|
|
|
|
|
'The coolify proxy will be stopped.',
|
|
|
|
|
'All resources hosted on coolify will be unavailable.',
|
|
|
|
|
]" :confirmWithText="false"
|
|
|
|
|
:confirmWithPassword="false" step2ButtonText="Stop Proxy" :dispatchEvent="true"
|
|
|
|
|
dispatchEventType="stopEvent">
|
|
|
|
|
<x-slot:trigger>
|
|
|
|
|
<button id="server-mobile-stop-proxy-trigger" type="button" class="hidden">Stop Proxy</button>
|
|
|
|
|
</x-slot:trigger>
|
|
|
|
|
</x-modal-confirmation>
|
|
|
|
|
<div class="hidden gap-2 md:flex">
|
2025-11-18 09:29:04 +00:00
|
|
|
<div class="mt-1" wire:loading wire:target="loadProxyConfiguration">
|
|
|
|
|
<x-loading text="Checking Traefik dashboard" />
|
|
|
|
|
</div>
|
|
|
|
|
@if ($traefikDashboardAvailable)
|
|
|
|
|
<button>
|
|
|
|
|
<a target="_blank" href="http://{{ $serverIp }}:8080">
|
|
|
|
|
Traefik Dashboard
|
|
|
|
|
<x-external-link />
|
|
|
|
|
</a>
|
|
|
|
|
</button>
|
|
|
|
|
@endif
|
|
|
|
|
<x-modal-confirmation title="Confirm Proxy Restart?" buttonTitle="Restart Proxy"
|
|
|
|
|
submitAction="restart" :actions="[
|
|
|
|
|
'This proxy will be stopped and started again.',
|
|
|
|
|
'All resources hosted on coolify will be unavailable during the restart.',
|
|
|
|
|
]" :confirmWithText="false" :confirmWithPassword="false" step2ButtonText="Restart Proxy"
|
|
|
|
|
:dispatchEvent="true" dispatchEventType="restartEvent">
|
|
|
|
|
<x-slot:button-title>
|
|
|
|
|
<svg class="w-5 h-5 dark:text-warning" viewBox="0 0 24 24"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
|
|
|
|
stroke-width="2">
|
|
|
|
|
<path d="M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747" />
|
|
|
|
|
<path d="M20 4v5h-5" />
|
|
|
|
|
</g>
|
|
|
|
|
</svg>
|
|
|
|
|
Restart Proxy
|
|
|
|
|
</x-slot:button-title>
|
|
|
|
|
</x-modal-confirmation>
|
|
|
|
|
<x-modal-confirmation title="Confirm Proxy Stopping?" buttonTitle="Stop Proxy"
|
|
|
|
|
submitAction="stop(true)" :actions="[
|
|
|
|
|
'The coolify proxy will be stopped.',
|
|
|
|
|
'All resources hosted on coolify will be unavailable.',
|
|
|
|
|
]" :confirmWithText="false"
|
|
|
|
|
:confirmWithPassword="false" step2ButtonText="Stop Proxy" :dispatchEvent="true"
|
|
|
|
|
dispatchEventType="stopEvent">
|
|
|
|
|
<x-slot:button-title>
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" viewBox="0 0 24 24"
|
|
|
|
|
stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round">
|
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
|
|
|
<path d="M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z">
|
|
|
|
|
</path>
|
2025-06-06 12:47:54 +00:00
|
|
|
<path
|
2025-11-18 09:29:04 +00:00
|
|
|
d="M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z">
|
|
|
|
|
</path>
|
|
|
|
|
</svg>
|
|
|
|
|
Stop Proxy
|
|
|
|
|
</x-slot:button-title>
|
|
|
|
|
</x-modal-confirmation>
|
|
|
|
|
</div>
|
2025-06-06 12:47:54 +00:00
|
|
|
@else
|
|
|
|
|
<button @click="$wire.dispatch('checkProxyEvent')" class="gap-2 button">
|
2025-11-18 09:29:04 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 dark:text-warning" viewBox="0 0 24 24"
|
|
|
|
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round">
|
2025-06-06 12:47:54 +00:00
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
|
|
|
<path d="M7 4v16l13 -8z" />
|
|
|
|
|
</svg>
|
|
|
|
|
Start Proxy
|
|
|
|
|
</button>
|
2026-07-08 07:42:52 +00:00
|
|
|
</div>
|
2025-06-06 12:47:54 +00:00
|
|
|
@endif
|
2026-02-25 14:37:04 +00:00
|
|
|
@endcan
|
2025-06-06 12:47:54 +00:00
|
|
|
@endif
|
|
|
|
|
@script
|
2025-11-18 09:29:04 +00:00
|
|
|
<script>
|
|
|
|
|
$wire.$on('checkProxyEvent', () => {
|
|
|
|
|
try {
|
|
|
|
|
$wire.$call('checkProxy');
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
$wire.$dispatch('error', 'Failed to check proxy status. Please try again.');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$wire.$on('restartEvent', () => {
|
2025-12-04 07:57:03 +00:00
|
|
|
if ($wire.restartInitiated) return;
|
2025-11-18 09:29:04 +00:00
|
|
|
window.dispatchEvent(new CustomEvent('startproxy'))
|
|
|
|
|
$wire.$call('restart');
|
|
|
|
|
});
|
|
|
|
|
$wire.$on('startProxy', () => {
|
|
|
|
|
window.dispatchEvent(new CustomEvent('startproxy'))
|
|
|
|
|
$wire.$call('startProxy');
|
|
|
|
|
});
|
|
|
|
|
$wire.$on('stopEvent', () => {
|
|
|
|
|
$wire.$call('stop');
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2025-06-06 12:47:54 +00:00
|
|
|
@endscript
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-01-19 18:27:19 +00:00
|
|
|
</div>
|