{"action":"created","issue":{"url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/8","repository_url":"https://api.github.com/repos/beyondcode/laravel-websockets","labels_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/8/comments","events_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/8/events","html_url":"https://github.com/beyondcode/laravel-websockets/issues/8","id":387565144,"node_id":"MDU6SXNzdWUzODc1NjUxNDQ=","number":8,"title":"how to make it work with Laravel Valet --secure","user":{"login":"vesper8","id":816028,"node_id":"MDQ6VXNlcjgxNjAyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/816028?v=4","gravatar_id":"","url":"https://api.github.com/users/vesper8","html_url":"https://github.com/vesper8","followers_url":"https://api.github.com/users/vesper8/followers","following_url":"https://api.github.com/users/vesper8/following{/other_user}","gists_url":"https://api.github.com/users/vesper8/gists{/gist_id}","starred_url":"https://api.github.com/users/vesper8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesper8/subscriptions","organizations_url":"https://api.github.com/users/vesper8/orgs","repos_url":"https://api.github.com/users/vesper8/repos","events_url":"https://api.github.com/users/vesper8/events{/privacy}","received_events_url":"https://api.github.com/users/vesper8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-12-05T02:23:12Z","updated_at":"2018-12-05T19:18:52Z","closed_at":"2018-12-05T09:49:14Z","author_association":"NONE","body":"I am trying to get the demo to work and it is not. I figure it must be because by default all my valet sites use the --secure flag\r\n\r\nI get this red error\r\n\r\n<img width=\"1005\" alt=\"screenshot 2018-12-05 02 20 45\" src=\"https://user-images.githubusercontent.com/816028/49485940-a4b34500-f834-11e8-9041-e1279ff3f06a.png\">\r\n\r\nI went into the websockets.php config file and tried to pass it the crt and key files:\r\n\r\n```\r\n    'ssl' => [\r\n        /*\r\n         * Path to local certificate file on filesystem. It must be a PEM encoded file which\r\n         * contains your certificate and private key. It can optionally contain the\r\n         * certificate chain of issuers. The private key also may be contained\r\n         * in a separate file specified by local_pk.\r\n         */\r\n        'local_cert' => '/Users/xxx/.valet/Certificates/laravel-websockets-demo.dev.crt',\r\n        // 'local_cert' => null,\r\n\r\n        /*\r\n         * Path to local private key file on filesystem in case of separate files for\r\n         * certificate (local_cert) and private key.\r\n         */\r\n        'local_pk' => '/Users/xxx/.valet/Certificates/laravel-websockets-demo.dev.key',\r\n        // 'local_pk' => null,\r\n\r\n        /*\r\n         * Passphrase with which your local_cert file was encoded.\r\n         */\r\n        'passphrase' => null\r\n    ],\r\n```\r\n\r\nThis changes the error and is no longer red, but it still doesn't work\r\n\r\n<img width=\"1007\" alt=\"screenshot 2018-12-05 02 20 29\" src=\"https://user-images.githubusercontent.com/816028/49485927-9c5b0a00-f834-11e8-80be-9d7fe0fc09fa.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/comments/444608680","html_url":"https://github.com/beyondcode/laravel-websockets/issues/8#issuecomment-444608680","issue_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/8","id":444608680,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDYwODY4MA==","user":{"login":"vesper8","id":816028,"node_id":"MDQ6VXNlcjgxNjAyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/816028?v=4","gravatar_id":"","url":"https://api.github.com/users/vesper8","html_url":"https://github.com/vesper8","followers_url":"https://api.github.com/users/vesper8/followers","following_url":"https://api.github.com/users/vesper8/following{/other_user}","gists_url":"https://api.github.com/users/vesper8/gists{/gist_id}","starred_url":"https://api.github.com/users/vesper8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesper8/subscriptions","organizations_url":"https://api.github.com/users/vesper8/orgs","repos_url":"https://api.github.com/users/vesper8/repos","events_url":"https://api.github.com/users/vesper8/events{/privacy}","received_events_url":"https://api.github.com/users/vesper8/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T19:18:52Z","updated_at":"2018-12-05T19:18:52Z","author_association":"NONE","body":"By the way, now that I have it working, I wanted to see which settings I could remove. And it turns out the 'cafile' => .pem is not needed inside the websockets.php"}}
{"actor":{"display_login":"vesper8"}}