@@ -12,121 +12,20 @@ public function render(): array
1212 {
1313 return [
1414 self ::NAME => [
15- 'address ' => '127.0.0.1:8080 ' ,
16- 'internal_error_code ' => 505 ,
17- 'access_logs ' => false ,
18- 'max_request_size ' => 256 ,
15+ 'address ' => '0.0.0.0:8080 ' ,
1916 'middleware ' => [
20- 'headers ' ,
21- 'gzip '
22- ],
23- 'trusted_subnets ' => [
24- '10.0.0.0/8 ' ,
25- '127.0.0.0/8 ' ,
26- '172.16.0.0/12 ' ,
27- '192.168.0.0/16 ' ,
28- '::1/128 ' ,
29- 'fc00::/7 ' ,
30- 'fe80::/10 '
31- ],
32- 'new_relic ' => [
33- 'app_name ' => 'app ' ,
34- 'license_key ' => 'key '
35- ],
36- 'cache ' => [
37- 'driver ' => 'memory ' ,
38- 'cache_methods ' => [
39- 'GET ' ,
40- 'HEAD ' ,
41- 'POST '
42- ],
43- 'config ' => []
44- ],
45- 'uploads ' => [
46- 'dir ' => '/tmp ' ,
47- 'forbid ' => [
48- '.php ' ,
49- '.exe ' ,
50- '.bat ' ,
51- '.sh '
52- ],
53- 'allow ' => [
54- '.html ' ,
55- '.aaa '
56- ]
57- ],
58- 'headers ' => [
59- 'cors ' => [
60- 'allowed_origin ' => '* ' ,
61- 'allowed_headers ' => '* ' ,
62- 'allowed_methods ' => 'GET,POST,PUT,DELETE ' ,
63- 'allow_credentials ' => true ,
64- 'exposed_headers ' => 'Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma ' ,
65- 'max_age ' => 600
66- ],
67- 'request ' => [
68- 'input ' => 'custom-header ' ,
69- ],
70- 'response ' => [
71- 'X-Powered-By ' => 'RoadRunner '
72- ]
17+ 'gzip ' ,
18+ 'static '
7319 ],
7420 'static ' => [
75- 'dir ' => '. ' ,
76- 'forbid ' => ['' ],
77- 'calculate_etag ' => false ,
78- 'weak ' => false ,
79- 'allow ' => [
80- '.txt ' ,
81- '.php '
82- ],
83- 'request ' => [
84- 'input ' => 'custom-header '
85- ],
86- 'response ' => [
87- 'output ' => 'output-header '
88- ]
21+ 'dir ' => 'public ' ,
22+ 'forbid ' => ['.php ' , '.htaccess ' ],
8923 ],
9024 'pool ' => [
91- 'debug ' => false ,
92- 'command ' => 'php my-super-app.php ' ,
93- 'num_workers ' => 0 ,
94- 'max_jobs ' => 64 ,
95- 'allocate_timeout ' => '60s ' ,
96- 'destroy_timeout ' => '60s ' ,
25+ 'num_workers ' => 1 ,
9726 'supervisor ' => [
98- 'watch_tick ' => '1s ' ,
99- 'ttl ' => '0s ' ,
100- 'idle_ttl ' => '10s ' ,
101- 'max_worker_memory ' => 128 ,
102- 'exec_ttl ' => '60s '
27+ 'max_worker_memory ' => 100
10328 ]
104- ],
105- 'ssl ' => [
106- 'address ' => '127.0.0.1:443 ' ,
107- 'acme ' => [
108- 'certs_dir ' => 'rr_le_certs ' ,
109- 'email ' => 'you-email-here@email ' ,
110- 'alt_http_port ' => 80 ,
111- 'alt_tlsalpn_port ' => 443 ,
112- 'challenge_type ' => 'http-01 ' ,
113- 'use_production_endpoint ' => true ,
114- 'domains ' => [
115- 'your-cool-domain.here ' ,
116- 'your-second-domain.here '
117- ]
118- ],
119- 'redirect ' => true ,
120- 'cert ' => '/ssl/server.crt ' ,
121- 'key ' => '/ssl/server.key ' ,
122- 'root_ca ' => '/ssl/root.crt '
123- ],
124- 'fcgi ' => [
125- 'address ' => 'tcp://0.0.0.0:7921 '
126- ],
127- 'http2 ' => [
128- 'h2c ' => false ,
129- 'max_concurrent_streams ' => 128
13029 ]
13130 ]
13231 ];
0 commit comments