-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.rr-prod.yaml
109 lines (99 loc) · 3.14 KB
/
.rr-prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3'
rpc:
listen: tcp://127.0.0.1:6001
metrics:
address: 0.0.0.0:2112
server:
command: 'php app.php'
relay: pipes
on_init:
command: "php app.php register:modules"
logs:
# Logging mode can be "development", "production" or "raw".
# Do not forget to change this value for production environment.
mode: ${RR_LOG_MODE:-production}
# Encoding format can be "console" or "json" (last is preferred for production usage).
encoding: ${RR_LOG_ENCODING:-json}
# Logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_LEVEL:-warn}
channels:
http:
# HTTP plugin logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_HTTP_LEVEL:-warn}
tcp:
# TCP plugin logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_TCP_LEVEL:-warn}
jobs:
# JOBS plugin logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_TCP_LEVEL:-warn}
centrifuge:
# Centrifuge plugin logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_CENTRIFUGE_LEVEL:-warn}
server:
# Server logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_SERVER_LEVEL:-warn}
service:
# Service logging level can be "panic", "error", "warn", "info", "debug".
level: ${RR_LOG_SERVICE_LEVEL:-warn}
http:
address: 127.0.0.1:8082
middleware: [ "headers" ]
headers:
cors:
allowed_origin: ${RR_HTTP_ALLOWED_ORIGIN:-*}
allowed_headers: ${RR_HTTP_ALLOWED_HEADERS:-*}
allowed_methods: "GET,POST,PUT,DELETE"
allow_credentials: ${RR_HTTP_ALLOW_CREDENTIALS:-true}
exposed_headers: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma"
max_age: 600
pool:
num_workers: ${RR_HTTP_NUM_WORKERS:-1}
tcp:
servers:
monolog:
# Address to listen.
addr: ${RR_TCP_MONOLOG_ADDR:-:9913}
delimiter: "\n"
var-dumper:
# Address to listen.
addr: ${RR_TCP_VAR_DUMPER_ADDR:-:9912}
delimiter: "\n"
smtp:
# Address to listen.
addr: ${RR_TCP_SMTP_ADDR:-:1025}
# Chunks that RR uses to read the data. In bytes.
# If you expect big payloads on a TCP server, to reduce `read` syscalls,
# would be a good practice to use a fairly big enough buffer.
# Default: 1024 * 1024 * 50 (50MB)
read_buf_size: ${RR_TCP_READ_BUF_SIZE:-50485760}
pool:
num_workers: ${RR_TCP_NUM_WORKERS:-2}
kv:
local:
driver: memory
config: { }
jobs:
consume: [ ]
pool:
num_workers: ${RR_JOBS_NUM_WORKERS:-1}
service:
nginx:
service_name_in_log: true
remain_after_exit: true
restart_sec: 5
command: "/usr/sbin/nginx"
centrifuge:
service_name_in_log: true
remain_after_exit: true
restart_sec: 5
command: "./bin/centrifugo --config=centrifugo.json"
dolt:
service_name_in_log: true
remain_after_exit: true
restart_sec: 5
command: "./bin/dolt sql-server --data-dir=.db"
centrifuge:
proxy_address: ${RR_CENTRIFUGE_PROXY_ADDRESS}
grpc_api_address: ${RR_CENTRIFUGE_GRPC_API_ADDRESS}
pool:
num_workers: ${RR_CENTRIFUGE_NUM_WORKERS:-2}