string
The listening ip, like local address127.0.0.1
(IPv4)::1
(IPv6), all addresses0.0.0.0
(IPv4)::
(IPv6), default127.0.0.1
.
int
The listening port, needroot
permission if port less than1024
, default5200
.
int
DefaultSWOOLE_SOCK_TCP
. Usually, you don’t need to care about it. Unless you want Nginx to proxy to theUnixSocket Stream
file, you need to modify it toSWOOLE_SOCK_UNIX_STREAM
, andlisten_ip
is the path ofUnixSocket Stream
file.
string
Set HTTP headerServer
when respond by LaravelS, defaultLaravelS
.
bool
Whether handle the static resource by LaravelS(RequireSwoole >= 1.7.21
, Handle by Swoole ifSwoole >= 1.9.17
), defaultfalse
, Suggest that Nginx handles the statics and LaravelS handles the dynamics. The default path of static resource isbase_path('public')
, you can modifyswoole.document_root
to change it.
string
The basic path ofLaravel/Lumen
, defaultbase_path()
, be used forsymbolic link
.
bool
Whether enable theInotify Reload
to reload all worker processes when your code is modified, depend on inotify, usephp --ri inotify
to check whether the available. defaultfalse
,recommend to enable in development environment only
, change Watchers Limit.
string
The file path thatInotify
watches, defaultbase_path()
.
array
The file types thatInotify
watches, default['.php']
.
array
The excluded/ignored directories thatInotify
watches, default[]
, eg:[base_path('vendor')]
.
bool
Whether output the reload log, defaulttrue
.
array
Configure the event callback function ofSwoole
, key-value format, key is the event name, and value is the class that implements the event processing interface, refer Demo.
bool
Whether enable WebSocket Server. The Listening address of WebSocket Sever is the same as Http Server, defaultfalse
.
string
The class name for WebSocket handler, needs to implement interfaceWebSocketHandlerInterface
, refer Demo.
array
The socket list for TCP/UDP, refer Demo.
array
The custom process list, refer Demo.
array
The millisecond timer, refer Demo.
array
The defined ofswoole_table
list, refer Demo.
array
The list of cleaners foreach request
is used to clean up some residual global variables, singleton objects, and static properties to avoid data pollution between requests, these classes must implement interfaceHhxsv5\LaravelS\Illuminate\Cleaners\CleanerInterface
. The order of cleanup is consistent with the order of the arrays. These cleaners enabled by default, and do not need to be configured.
// Need to configure the following cleaners if you use the session/authentication/passport in your project
'cleaners' => [
Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class,
],
// Need to configure the following cleaners if you use the package "tymon/jwt-auth" in your project
'cleaners' => [
Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\JWTCleaner::class,
],
// Need to configure the following cleaners if you use the package "spatie/laravel-menu" in your project
'cleaners' => [
Hhxsv5\LaravelS\Illuminate\Cleaners\MenuCleaner::class,
],
// Need to configure the following cleaners if you use the package "encore/laravel-admin" in your project
'cleaners' => [
Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\LaravelAdminCleaner::class,
],
// Need to configure the following cleaners if you use the package "jqhph/dcat-admin" in your project
'cleaners' => [
Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class,
Hhxsv5\LaravelS\Illuminate\Cleaners\DcatAdminCleaner::class,
],
// Need to configure the following cleaners if you use the package "tightenco/ziggy" in your project to solve "Ziggy is not defined"
'cleaners' => [
Hhxsv5\LaravelS\Illuminate\Cleaners\ZiggyCleaner::class,
],
array
TheService Provider
list, will be re-registeredeach request
, and run methodboot()
if it exists. Usually, be used to clear theService Provider
which registersSingleton
instances.
//...
'register_providers' => [
\Xxx\Yyy\XxxServiceProvider::class,
],
//...
array
Automatically destroy the controllers after each request to solve the problem of the singleton controllers, refer Demo.
array
Swoole'soriginal
configuration items, refer Swoole Server Configuration.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。