-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
118 lines (112 loc) · 4.46 KB
/
config.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
110
111
112
113
114
115
116
117
118
endure:
log_level: ${RUMORS_ENDURE_LOG_LEVEL:-info}
grace_period: ${RUMORS_ENDURE_GRACE_PERIOD:-5s}
print_graph: ${RUMORS_ENDURE_PRINT_GRAPH:-false}
log:
add_source: ${RUMORS_LOG_ADD_SOURCE:-false}
level: ${RUMORS_LOG_LEVEL:-info}
encoding: ${RUMORS_LOG_ENCODING:-json}
output_paths:
- ${RUMORS_LOG_OUTPUT_PATH:-stderr}
channels:
http:
add_source: ${RUMORS_HTTP_LOG_ADD_SOURCE:-false}
level: ${RUMORS_HTTP_LOG_LEVEL:-info}
encoding: ${RUMORS_HTTP_LOG_ENCODING:-json}
output_paths:
- ${RUMORS_HTTP_LOG_OUTPUT_PATH:-stderr}
telegram:
add_source: ${RUMORS_TELEGRAM_LOG_ADD_SOURCE:-false}
level: ${RUMORS_TELEGRAM_LOG_LEVEL:-info}
encoding: ${RUMORS_TELEGRAM_LOG_ENCODING:-json}
output_paths:
- ${RUMORS_TELEGRAM_LOG_OUTPUT_PATH:-stderr}
task:
add_source: ${RUMORS_TASK_LOG_ADD_SOURCE:-false}
level: ${RUMORS_TASK_LOG_LEVEL:-info}
encoding: ${RUMORS_TASK_LOG_ENCODING:-json}
output_paths:
- ${RUMORS_TASK_LOG_OUTPUT_PATH:-stderr}
pubsub:
add_source: ${RUMORS_PUBSUB_LOG_ADD_SOURCE:-false}
level: ${RUMORS_PUBSUB_LOG_LEVEL:-info}
encoding: ${RUMORS_PUBSUB_LOG_ENCODING:-json}
output_paths:
- ${RUMORS_PUBSUB_LOG_OUTPUT_PATH:-stderr}
mongo:
ping: ${RUMORS_MONGO_PING:-false}
uri: ${RUMORS_MONGO_URI}
redis:
ping: ${RUMORS_REDIS_PING:-false}
username: ${RUMORS_REDIS_USERNAME}
password: ${RUMORS_REDIS_PASSWORD}
addrs:
- ${RUMORS_REDIS_ADDRESS:-127.0.0.1:6379}
telegram:
token: ${RUMORS_TELEGRAM_TOKEN}
owner: ${RUMORS_TELEGRAM_OWNER}
retry: ${RUMORS_TELEGRAM_RETRY:-3}
poller:
only_owner: ${RUMORS_TELEGRAM_POLLER_ONLY_OWNER:-true}
buffer: ${RUMORS_TELEGRAM_POLLER_BUFFER:-50}
limit: ${RUMORS_TELEGRAM_POLLER_LIMIT:-50}
timeout: ${RUMORS_TELEGRAM_POLLER_TIMEOUT:-0s}
allowed_updates:
- "message"
- "edited_message"
- "channel_post"
- "edited_channel_post"
- "my_chat_member"
- "chat_member"
task:
scheduler:
sync_interval: ${RUMORS_TASK_SCHEDULER_SYNC_INTERVAL:-5m}
server:
strict_priority: ${RUMORS_TASK_SERVER_STRICT_PRIORITY:-false}
health_check_interval: ${RUMORS_TASK_SERVER_HEALTH_CHECK_INTERVAL:-15s}
delayed_task_check_interval: ${RUMORS_TASK_SERVER_DELAYED_TASK_CHECK_INTERVAL:-5s}
queues:
tgmember: 9
tgcmd: 5
jobfeed: 8
jobsitemap: 7
broadcast: 6
http:
address: ${RUMORS_HTTP_ADDRESS:-0.0.0.0:1234}
cert_path: ${RUMORS_HTTP_CERT_PATH}
cert_file: ${RUMORS_HTTP_CERT_FILE}
key_file: ${RUMORS_HTTP_KEY_FILE}
disable_http2: ${RUMORS_HTTP_DISABLE_HTTP2:-false}
hide_port: ${RUMORS_HTTP_HIDE_PORT:-false}
read_timeout: ${RUMORS_HTTP_READ_TIMEOUT:-0} # zero or negative value means there will be no timeout
write_timeout: ${RUMORS_HTTP_WRITE_TIMEOUT:-0} # zero, the value of read_timeout is used
idle_timeout: ${RUMORS_HTTP_IDLE_TIMEOUT:-0} # zero, the value of read_timeout is used
ui:
front: ${RUMORS_HTTP_UI_FRONT}
sys: ${RUMORS_HTTP_UI_SYS}
log_request:
exclude_status: ${RUMORS_HTTP_LOG_REQ_EXCL_STATUS}
exclude_method: ${RUMORS_HTTP_LOG_REQ_EXCL_METHOD}
exclude_endpoint: ${RUMORS_HTTP_LOG_REQ_EXCL_ENDPOINT:-^/(metrics|favicon.ico)}
jwt:
private_key: ${RUMORS_HTTP_JWT_PRIVATE_KEY}
access_token_ttl: ${RUMORS_HTTP_JWT_ACCESS_TOKEN_TTL:-5m}
refresh_token_ttl: ${RUMORS_HTTP_JWT_REFRESH_TOKEN_TTL:-120h}
swagger:
enabled: ${RUMORS_HTTP_SWAGGER_ENABLED:-false}
middleware:
metrics:
namespace: ${RUMORS_HTTP_MDWR_METRICS_NMS:-rumors}
exclude_status: ${RUMORS_HTTP_MDWR_METRICS_EXCL_STATUS}
exclude_method: ${RUMORS_HTTP_MDWR_METRICS_EXCL_METHOD}
exclude_endpoint: ${RUMORS_HTTP_MDWR_METRICS_EXCL_ENDPOINT:-^/(metrics|favicon.ico)}
compress:
level: ${RUMORS_HTTP_MDWR_GZIP_LEVEL:-1}
min_size: ${RUMORS_HTTP_MDWR_GZIP_MIN_SIZE:-1400} # minimum size until we enable gzip compression
cors:
allowed_origin: ${RUMORS_HTTP_MDWR_CORS_ALLOWED_ORIGIN}
allowed_headers: ${RUMORS_HTTP_MDWR_CORS_ALLOWED_HEADERS:-Content-Type,Accept,Authorization,Last-Event-ID}
allowed_methods: ${RUMORS_HTTP_MDWR_CORS_ALLOWED_METHODS:-GET,HEAD,POST,PATCH,DELETE,OPTIONS}
allow_credentials: ${RUMORS_HTTP_MDWR_CORS_ALLOW_CREDENTIALS:-true}
exposed_headers: ${RUMORS_HTTP_MDWR_CORS_EXPOSED_HEADERS:-Content-Type,Content-Language,Cache-Control,Connection,Location,Last-Modified,Expires,HeaderPragma,Vary}
max_age: ${RUMORS_HTTP_MDWR_CORS_MAX_AGE:-0}