An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
chore: Update WebSocket URL in terminal.blade.php
Andras Bacsai2f692da1c9d5
diff --git a/resources/views/livewire/project/shared/terminal.blade.php b/resources/views/livewire/project/shared/terminal.blade.phpindex 9fa6bbfb7d..293c387e28 100644--- a/resources/views/livewire/project/shared/terminal.blade.php+++ b/resources/views/livewire/project/shared/terminal.blade.php@@ -34,12 +34,18 @@function initializeWebSocket() {if (!socket || socket.readyState === WebSocket.CLOSED) {+ // Only use port if Coolify is used with ip (so it has a port in the url)+ let postPath = ':6002/terminal';+ const port = window.location.port;+ if (!port) {+ postPath = '/terminal';+ }let url = window.location.hostname;// make sure the port is not includedurl = url.split(':')[0];socket = new WebSocket((window.location.protocol === 'https:' ? 'wss://' : 'ws://') +url +- ':6002/terminal');+ postPath);socket.onmessage = handleSocketMessage;socket.onerror = (e) => {