Skip to content

Commit e42c7e2

Browse files
authored
Merge pull request coollabsio#3479 from coollabsio/next
v4.0.0-beta.341
2 parents 2d9c728 + 2c210ab commit e42c7e2

File tree

12 files changed

+46
-23
lines changed

12 files changed

+46
-23
lines changed

app/Models/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public function setupDynamicProxyConfiguration()
413413
handle /app/* {
414414
reverse_proxy coolify-realtime:6001
415415
}
416-
handle /terminal/ws/* {
416+
handle /terminal/ws {
417417
reverse_proxy coolify-realtime:6002
418418
}
419419
reverse_proxy coolify:80

bootstrap/helpers/shared.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2985,7 +2985,11 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
29852985
// Get magic environments where we need to preset the FQDN
29862986
if ($key->startsWith('SERVICE_FQDN_')) {
29872987
// SERVICE_FQDN_APP or SERVICE_FQDN_APP_3000
2988-
$fqdnFor = $key->after('SERVICE_FQDN_')->lower()->value();
2988+
if (substr_count(str($key)->value(), '_') === 3) {
2989+
$fqdnFor = $key->after('SERVICE_FQDN_')->beforeLast('_')->lower()->value();
2990+
} else {
2991+
$fqdnFor = $key->after('SERVICE_FQDN_')->lower()->value();
2992+
}
29892993
if ($isApplication) {
29902994
$fqdn = generateFqdn($server, "{$resource->name}-$uuid");
29912995
} elseif ($isService) {

config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// The release version of your application
99
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
10-
'release' => '4.0.0-beta.340',
10+
'release' => '4.0.0-beta.341',
1111
// When left empty or `null` the Laravel environment will be used
1212
'environment' => config('app.env'),
1313

config/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
return '4.0.0-beta.340';
3+
return '4.0.0-beta.341';

docker-compose.prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ services:
4646
- PUSHER_APP_ID
4747
- PUSHER_APP_KEY
4848
- PUSHER_APP_SECRET
49+
- TERMINAL_PROTOCOL
50+
- TERMINAL_HOST
51+
- TERMINAL_PORT
4952
- AUTOUPDATE
5053
- SELF_HOSTED
5154
- SSH_MUX_ENABLED

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"postcss": "8.4.38",
1515
"pusher-js": "8.4.0-rc2",
1616
"tailwindcss": "3.4.4",
17-
"vite": "4.5.3",
17+
"vite": "4.5.5",
1818
"vue": "3.4.29"
1919
},
2020
"dependencies": {

public/svgs/budge.png

3.3 KB
Loading

resources/views/livewire/project/shared/terminal.blade.php

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,33 @@ function keepAlive() {
5050
5151
function initializeWebSocket() {
5252
if (!socket || socket.readyState === WebSocket.CLOSED) {
53-
// Only use port if Coolify is used with ip (so it has a port in the url)
54-
let postPath = ':6002/terminal/ws';
55-
const port = window.location.port;
56-
if (!port) {
57-
postPath = '/terminal/ws';
53+
const predefined = {
54+
protocol: "{{ env('TERMINAL_PROTOCOL') }}",
55+
host: "{{ env('TERMINAL_HOST') }}",
56+
port: "{{ env('TERMINAL_PORT') }}"
5857
}
59-
let url = window.location.hostname;
60-
// make sure the port is not included
61-
url = url.split(':')[0];
62-
socket = new WebSocket((window.location.protocol === 'https:' ? 'wss://' : 'ws://') +
63-
url +
64-
postPath);
58+
const connectionString = {
59+
protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',
60+
host: window.location.hostname,
61+
port: ":6002",
62+
path: '/terminal/ws'
63+
}
64+
if (!window.location.port) {
65+
connectionString.port = ''
66+
}
67+
if (predefined.host) {
68+
connectionString.host = predefined.host
69+
}
70+
if (predefined.port) {
71+
connectionString.port = `:${predefined.port}`
72+
}
73+
if (predefined.protocol) {
74+
connectionString.protocol = predefined.protocol
75+
}
76+
77+
const url =
78+
`${connectionString.protocol}://${connectionString.host}${connectionString.port}${connectionString.path}`
79+
socket = new WebSocket(url);
6580
6681
socket.onmessage = handleSocketMessage;
6782
socket.onerror = (e) => {

templates/compose/budge.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# documentation: https://github.com/linuxserver/budge
22
# slogan: A budgeting personal finance app.
33
# tags: personal finance, budgeting, expense tracking
4+
# logo: svgs/budge.png
45

56
services:
67
budge:

0 commit comments

Comments
 (0)