@@ -13,34 +13,67 @@ server:
1313 command : " php app.php register:modules"
1414
1515logs :
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}
1742
1843http :
1944 address : 127.0.0.1:8082
2045 middleware : [ "headers" ]
2146 headers :
2247 cors :
23- allowed_origin : " * "
24- allowed_headers : " * "
48+ allowed_origin : ${RR_HTTP_ALLOWED_ORIGIN:-*}
49+ allowed_headers : ${RR_HTTP_ALLOWED_HEADERS:-*}
2550 allowed_methods : " GET,POST,PUT,DELETE"
26- allow_credentials : true
51+ allow_credentials : ${RR_HTTP_ALLOW_CREDENTIALS:- true}
2752 exposed_headers : " Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma"
2853 max_age : 600
2954 pool :
30- num_workers : ${RR_HTTP_NUM_WORKERS}
55+ num_workers : ${RR_HTTP_NUM_WORKERS:-1 }
3156
3257tcp :
3358 servers :
3459 monolog :
35- addr : :9913
60+ # Address to listen.
61+ addr : ${RR_TCP_MONOLOG_ADDR:-:9913}
3662 delimiter : " \n "
3763 var-dumper :
38- addr : :9912
64+ # Address to listen.
65+ addr : ${RR_TCP_VAR_DUMPER_ADDR:-:9912}
3966 delimiter : " \n "
4067 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}
4275 pool :
43- num_workers : ${RR_TCP_NUM_WORKERS}
76+ num_workers : ${RR_TCP_NUM_WORKERS:-2 }
4477
4578kv :
4679 local :
4982
5083jobs :
5184 consume : [ ]
85+ pool :
86+ num_workers : ${RR_JOBS_NUM_WORKERS:-1}
5287
5388service :
5489 nginx :
5590 service_name_in_log : true
5691 remain_after_exit : true
57- restart_sec : 1
92+ restart_sec : 5
5893 command : " /usr/sbin/nginx"
5994 centrifuge :
6095 service_name_in_log : true
6196 remain_after_exit : true
62- restart_sec : 1
97+ restart_sec : 5
6398 command : " ./bin/centrifugo --config=centrifugo.json"
6499 dolt :
65100 service_name_in_log : true
66101 remain_after_exit : true
67- restart_sec : 1
102+ restart_sec : 5
68103 command : " ./bin/dolt sql-server --data-dir=.db"
69104
70105centrifuge :
71106 proxy_address : ${RR_CENTRIFUGE_PROXY_ADDRESS}
72107 grpc_api_address : ${RR_CENTRIFUGE_GRPC_API_ADDRESS}
73108 poll :
74- num_workers : ${RR_CENTRIFUGE_NUM_WORKERS}
109+ num_workers : ${RR_CENTRIFUGE_NUM_WORKERS:-2 }
0 commit comments