This commit is contained in:
Andras Bacsai 2023-12-11 20:22:31 +01:00
parent ccb9769e67
commit 601a1e128e
4 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,6 @@
use Illuminate\Support\ServiceProvider;
use Laravel\Sanctum\Sanctum;
use App\Models\PersonalAccessToken;
use Illuminate\Support\Facades\Config;
class AppServiceProvider extends ServiceProvider
{

View File

@ -1551,7 +1551,7 @@ function generateEnvValue(string $command)
function getRealtime()
{
$envDefined = env('PUSHER_PORT');
if (is_null($envDefined)) {
if (empty($envDefined)) {
$url = Url::fromString(Request::getSchemeAndHttpHost());
$port = $url->getPort();
if ($port) {

View File

@ -22,7 +22,7 @@ services:
AUTORUN_LARAVEL_STORAGE_LINK: "false"
AUTORUN_LARAVEL_MIGRATION: "false"
PUSHER_HOST: "${PUSHER_HOST}"
PUSHER_PORT: "${PUSHER_PORT:-6001}"
PUSHER_PORT: "${PUSHER_PORT}"
PUSHER_SCHEME: "${PUSHER_SCHEME:-http}"
PUSHER_APP_ID: "${PUSHER_APP_ID:-coolify}"
PUSHER_APP_KEY: "${PUSHER_APP_KEY:-coolify}"

View File

@ -3,8 +3,6 @@
<span x-data x-init="$wire.emit('error', '{{ session('error') }}')" />
@endif
<h1>Dashboard</h1>
Realtime Port: {{ getRealtime() ?? 'Not set' }}
<div class="subtitle">Your self-hosted environment</div>
@if (request()->query->get('success'))
<div class="rounded alert alert-success">