Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose the flag to turn on SWOOLE_SSL #342

Merged
merged 4 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/createSwooleServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$serverState['host'] ?? '127.0.0.1',
$serverState['port'] ?? '8080',
SWOOLE_PROCESS,
SWOOLE_SOCK_TCP,
SWOOLE_SOCK_TCP | ((bool) $config['swoole']['enable-openssl'] ?? 0) * SWOOLE_SSL,
);
} catch (Throwable $e) {
Laravel\Octane\Stream::shutdown($e);
Expand Down
19 changes: 19 additions & 0 deletions config/octane.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,25 @@
],
],

/*
|--------------------------------------------------------------------------
| Octane Swoole Configuration Options
|--------------------------------------------------------------------------
|
| While using Swoole, you may define additional configuration options as
| required by the application. You maycheck which options you need from:
| https://www.swoole.co.uk/docs/modules/swoole-server/configuration
|
*/

'swoole' => [
'enable-openssl' => false,
'options' => [
// 'ssl_cert_file' => '/etc/swoole/ssl/certs/sail-selfsigned.crt',
// 'ssl_key_file' => '/etc/swoole/ssl/private/sail-selfsigned.key',
],
],

/*
|--------------------------------------------------------------------------
| File Watching
Expand Down