This repository was archived by the owner on Feb 7, 2024. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 662
 
    This repository was archived by the owner on Feb 7, 2024. It is now read-only.
  
  
i need help (SSL) #845
Copy link
Copy link
Closed
Description
in my local host websockets is working
when i upload to my vps server(centos) it is not work
   'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                'cluster' => env('PUSHER_APP_CLUSTER'),
                'encrypted' => true,
                'host' => 'rdms.sawagroup.org',
                'port' => 8443,
                'scheme' => 'https',
                'curl_options' => [
                    CURLOPT_SSL_VERIFYHOST => 0,
                    CURLOPT_SSL_VERIFYPEER => 0,
                ]         
            ],
        ],
           'id' => env('PUSHER_APP_ID'),
            'name' => env('APP_NAME'),
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'path' => env('PUSHER_APP_PATH'),
            'capacity' => null,
            'enable_client_messages' => true,
            'enable_statistics' => true,
            'encrypted' => true,
            window.Pusher = require('pusher-js')
            window.Echo = new Echo({
              broadcaster: 'pusher',
              key: process.env.MIX_PUSHER_APP_KEY,
              cluster: process.env.MIX_PUSHER_APP_CLUSTER,
              encrypted: true,
              wsHost: window.location.hostname,
              wsPort: 8443,
              wssPort: 8443,
              forceTLS: true,
              disableStats: false,
              enabledTransports: ['ws', 'wss'],
              authorizer: channel => ({
                authorize: (socketId, callback) => {
                  axios.post('/api/broadcasting/auth', {
                    socket_id: socketId,
                    channel_name: channel.name,
                  })
                    .then(response => {
                      callback(false, response.data)
                    })
                    .catch(error => {
                      callback(true, error)
                    })
                },
              }),
            })
i read documentation but i don't understand how can get pem files
Metadata
Metadata
Assignees
Labels
No labels