fix: botones start/stop/restart usan POST; agrega webhook Coolify
- CoolifyApplicationStart/Stop/Restart cambian GET → POST (Coolify API requiere POST) - Nuevo endpoint público POST /webhooks/coolify para recibir notificaciones de deployment/restart desde Coolify Settings → Notifications → Webhook - UI: muestra URL del webhook en modal de config para fácil copia Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
7bfe7cba5c
commit
0f386ad456
@@ -442,6 +442,17 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Webhook URL para notificaciones -->
|
||||
<div class="px-6 pb-4 border-t pt-4">
|
||||
<p class="text-xs text-gray-500 mb-1 font-medium">URL Webhook (notificaciones)</p>
|
||||
<p class="text-xs text-gray-400 mb-2">Copia esta URL en <strong>Coolify → Settings → Notifications → Webhook</strong> para recibir eventos de deployment/restart.</p>
|
||||
<div class="flex items-center gap-2">
|
||||
<code class="flex-1 text-xs bg-gray-50 border rounded px-3 py-1.5 truncate select-all"
|
||||
x-text="window.location.origin + '/webhooks/coolify'"></code>
|
||||
<button @click="navigator.clipboard.writeText(window.location.origin + '/webhooks/coolify').then(() => flash('URL copiada'))"
|
||||
class="text-xs px-3 py-1.5 rounded-lg border text-gray-600 hover:bg-gray-50 shrink-0">Copiar</button>
|
||||
</div>
|
||||
</div>
|
||||
<div x-show="cfgMsg" class="px-6 pb-4 text-sm" :class="cfgOk ? 'text-green-600' : 'text-red-600'" x-text="cfgMsg"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user