Moved Proxy config reset button from bottom of the editor to next to the proxy name
This commit is contained in:
@@ -8,7 +8,8 @@
|
|||||||
<h2>Configuration</h2>
|
<h2>Configuration</h2>
|
||||||
@if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing')
|
@if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing')
|
||||||
@can('update', $server)
|
@can('update', $server)
|
||||||
<x-modal-confirmation title="Confirm Proxy Switching?" buttonTitle="Switch Proxy"
|
<x-modal-confirmation title="Confirm Proxy Switching?"
|
||||||
|
buttonTitle="Switch Proxy"
|
||||||
submitAction="changeProxy" :actions="[
|
submitAction="changeProxy" :actions="[
|
||||||
'Custom proxy configurations may be reset to their default settings.'
|
'Custom proxy configurations may be reset to their default settings.'
|
||||||
]" warningMessage="This operation may cause issues. Please refer to the guide <a href='https://coolify.io/docs/knowledge-base/server/proxies#switch-between-proxies' target='_blank' class='underline text-white'>switching between proxies</a> before proceeding!" step2ButtonText="Switch Proxy" :confirmWithText="false" :confirmWithPassword="false">
|
]" warningMessage="This operation may cause issues. Please refer to the guide <a href='https://coolify.io/docs/knowledge-base/server/proxies#switch-between-proxies' target='_blank' class='underline text-white'>switching between proxies</a> before proceeding!" step2ButtonText="Switch Proxy" :confirmWithText="false" :confirmWithPassword="false">
|
||||||
@@ -35,10 +36,29 @@
|
|||||||
id="redirectUrl" label="Redirect to (optional)" />
|
id="redirectUrl" label="Redirect to (optional)" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if ($server->proxyType() === ProxyTypes::TRAEFIK->value)
|
@php
|
||||||
<h3>Traefik (Coolify Proxy)</h3>
|
$proxyTitle = $server->proxyType() === ProxyTypes::TRAEFIK->value ? 'Traefik (Coolify Proxy)' : 'Caddy (Coolify Proxy)';
|
||||||
@elseif ($server->proxyType() === 'CADDY')
|
@endphp
|
||||||
<h3>Caddy (Coolify Proxy)</h3>
|
@if ($server->proxyType() === ProxyTypes::TRAEFIK->value || $server->proxyType() === 'CADDY')
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<h3>{{ $proxyTitle }}</h3>
|
||||||
|
@if($proxySettings)
|
||||||
|
@can('update', $server)
|
||||||
|
<x-modal-confirmation title="Reset Proxy Configuration?"
|
||||||
|
buttonTitle="Reset Configuration"
|
||||||
|
submitAction="resetProxyConfiguration" :actions="[
|
||||||
|
'Reset proxy configuration to default settings',
|
||||||
|
'All custom configurations will be lost',
|
||||||
|
'Custom ports and entrypoints will be removed',
|
||||||
|
]"
|
||||||
|
confirmationText="{{ $server->name }}"
|
||||||
|
confirmationLabel="Please confirm by entering the server name below"
|
||||||
|
shortConfirmationLabel="Server Name" step2ButtonText="Reset Configuration"
|
||||||
|
:confirmWithPassword="false" :confirmWithText="true">
|
||||||
|
</x-modal-confirmation>
|
||||||
|
@endcan
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if (
|
@if (
|
||||||
$server->proxy->last_applied_settings &&
|
$server->proxy->last_applied_settings &&
|
||||||
@@ -57,20 +77,6 @@
|
|||||||
monacoEditorLanguage="yaml"
|
monacoEditorLanguage="yaml"
|
||||||
label="Configuration file ({{ $this->configurationFilePath }})" name="proxySettings"
|
label="Configuration file ({{ $this->configurationFilePath }})" name="proxySettings"
|
||||||
id="proxySettings" rows="30" />
|
id="proxySettings" rows="30" />
|
||||||
@can('update', $server)
|
|
||||||
<x-modal-confirmation title="Reset Proxy Configuration?"
|
|
||||||
buttonTitle="Reset configuration to default" isErrorButton
|
|
||||||
submitAction="resetProxyConfiguration" :actions="[
|
|
||||||
'Reset proxy configuration to default settings',
|
|
||||||
'All custom configurations will be lost',
|
|
||||||
'Custom ports and entrypoints will be removed',
|
|
||||||
]"
|
|
||||||
confirmationText="{{ $server->name }}"
|
|
||||||
confirmationLabel="Please confirm by entering the server name below"
|
|
||||||
shortConfirmationLabel="Server Name" step2ButtonText="Reset Configuration"
|
|
||||||
:confirmWithPassword="false" :confirmWithText="true">
|
|
||||||
</x-modal-confirmation>
|
|
||||||
@endcan
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user