vuefilemanager broadcast server enhancements

This commit is contained in:
Čarodej
2022-04-22 08:58:00 +02:00
parent d43efad45e
commit 5e86799a82
9 changed files with 293 additions and 402 deletions
@@ -26,6 +26,7 @@ class StoreBroadcastServiceCredentialsController
'PUSHER_APP_CLUSTER' => $request->input('cluster'),
'PUSHER_APP_HOST' => '',
'PUSHER_APP_PORT' => '',
'PUSHER_APP_TLS' => true,
],
'native' => [
'BROADCAST_DRIVER' => 'pusher',
@@ -34,7 +35,8 @@ class StoreBroadcastServiceCredentialsController
'PUSHER_APP_SECRET' => 'local',
'PUSHER_APP_CLUSTER' => 'local',
'PUSHER_APP_HOST' => $request->input('host'),
'PUSHER_APP_PORT' => $request->input('port'),
'PUSHER_APP_PORT' => '',
'PUSHER_APP_TLS' => $request->boolean('tls') ? 'true' : 'false',
],
'none' => [
'BROADCAST_DRIVER' => 'null',
@@ -89,6 +89,9 @@ class StoreEnvironmentSettingsController extends Controller
'PUSHER_APP_KEY' => $request->input('broadcast.key'),
'PUSHER_APP_SECRET' => $request->input('broadcast.secret'),
'PUSHER_APP_CLUSTER' => $request->input('broadcast.cluster'),
'PUSHER_APP_HOST' => '',
'PUSHER_APP_PORT' => '',
'PUSHER_APP_TLS' => true,
],
'native' => [
'BROADCAST_DRIVER' => 'pusher',
@@ -97,7 +100,8 @@ class StoreEnvironmentSettingsController extends Controller
'PUSHER_APP_SECRET' => 'local',
'PUSHER_APP_CLUSTER' => 'local',
'PUSHER_APP_HOST' => $request->input('broadcast.host'),
'PUSHER_APP_PORT' => $request->input('broadcast.port'),
'PUSHER_APP_PORT' => '',
'PUSHER_APP_TLS' => $request->boolean('tls') ? 'true' : 'false',
],
'none' => [
'BROADCAST_DRIVER' => 'null',
@@ -17,7 +17,7 @@ class SetUploadRequestAsFilledController
]);
// Send user notification
if (! (is_demo() && $uploadRequest->user->email === 'howdy@hi5ve.digital')) {
if ($uploadRequest->user->email !== 'howdy@hi5ve.digital') {
$uploadRequest->user->notify(new UploadRequestFulfilledNotification($uploadRequest));
}