@@ -13,17 +13,42 @@ server:
13
13
command : " php app.php register:modules"
14
14
15
15
logs :
16
- level : ${RR_LOG_LEVEL:-info}
16
+ # Logging mode can be "development", "production" or "raw".
17
+ # Do not forget to change this value for production environment.
18
+ mode : ${RR_LOG_MODE:-production}
19
+ # Encoding format can be "console" or "json" (last is preferred for production usage).
20
+ encoding : ${RR_LOG_ENCODING:-json}
21
+ # Logging level can be "panic", "error", "warn", "info", "debug".
22
+ level : ${RR_LOG_LEVEL:-warn}
23
+ channels :
24
+ http :
25
+ # HTTP plugin logging level can be "panic", "error", "warn", "info", "debug".
26
+ level : ${RR_LOG_HTTP_LEVEL:-warn}
27
+ tcp :
28
+ # TCP plugin logging level can be "panic", "error", "warn", "info", "debug".
29
+ level : ${RR_LOG_TCP_LEVEL:-warn}
30
+ jobs :
31
+ # JOBS plugin logging level can be "panic", "error", "warn", "info", "debug".
32
+ level : ${RR_LOG_TCP_LEVEL:-warn}
33
+ centrifuge :
34
+ # Centrifuge plugin logging level can be "panic", "error", "warn", "info", "debug".
35
+ level : ${RR_LOG_CENTRIFUGE_LEVEL:-warn}
36
+ server :
37
+ # Server logging level can be "panic", "error", "warn", "info", "debug".
38
+ level : ${RR_LOG_SERVER_LEVEL:-warn}
39
+ service :
40
+ # Service logging level can be "panic", "error", "warn", "info", "debug".
41
+ level : ${RR_LOG_SERVICE_LEVEL:-warn}
17
42
18
43
http :
19
44
address : 127.0.0.1:8082
20
45
middleware : [ "headers" ]
21
46
headers :
22
47
cors :
23
- allowed_origin : " * "
24
- allowed_headers : " * "
48
+ allowed_origin : ${RR_HTTP_ALLOWED_ORIGIN:-*}
49
+ allowed_headers : ${RR_HTTP_ALLOWED_HEADERS:-*}
25
50
allowed_methods : " GET,POST,PUT,DELETE"
26
- allow_credentials : true
51
+ allow_credentials : ${RR_HTTP_ALLOW_CREDENTIALS:- true}
27
52
exposed_headers : " Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma"
28
53
max_age : 600
29
54
pool :
@@ -32,13 +57,21 @@ http:
32
57
tcp :
33
58
servers :
34
59
monolog :
35
- addr : :9913
60
+ # Address to listen.
61
+ addr : ${RR_TCP_MONOLOG_ADDR:-:9913}
36
62
delimiter : " \n "
37
63
var-dumper :
38
- addr : :9912
64
+ # Address to listen.
65
+ addr : ${RR_TCP_VAR_DUMPER_ADDR:-:9912}
39
66
delimiter : " \n "
40
67
smtp :
41
- addr : :1025
68
+ # Address to listen.
69
+ addr : ${RR_TCP_SMTP_ADDR:-:1025}
70
+ # Chunks that RR uses to read the data. In bytes.
71
+ # If you expect big payloads on a TCP server, to reduce `read` syscalls,
72
+ # would be a good practice to use a fairly big enough buffer.
73
+ # Default: 1024 * 1024 * 50 (50MB)
74
+ read_buf_size : ${RR_TCP_READ_BUF_SIZE:-50485760}
42
75
pool :
43
76
num_workers : ${RR_TCP_NUM_WORKERS}
44
77
@@ -54,17 +87,17 @@ service:
54
87
nginx :
55
88
service_name_in_log : true
56
89
remain_after_exit : true
57
- restart_sec : 1
90
+ restart_sec : 5
58
91
command : " /usr/sbin/nginx"
59
92
centrifuge :
60
93
service_name_in_log : true
61
94
remain_after_exit : true
62
- restart_sec : 1
95
+ restart_sec : 5
63
96
command : " ./bin/centrifugo --config=centrifugo.json"
64
97
dolt :
65
98
service_name_in_log : true
66
99
remain_after_exit : true
67
- restart_sec : 1
100
+ restart_sec : 5
68
101
command : " ./bin/dolt sql-server --data-dir=.db"
69
102
70
103
centrifuge :
0 commit comments