forked from xtrime-ru/TelegramRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
68 lines (58 loc) · 1.92 KB
/
.env.example
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
# SWOOLE
SWOOLE_SERVER_ADDRESS=127.0.0.1
SWOOLE_SERVER_PORT=9504
#number of concerunt threads
#increase if you have multiple long requests
SWOOLE_WORKER_NUM=1
#Compression incompatable with nginx, enable if dont use nginx
SWOOLE_HTTP_COMPRESSION=0
TELEGRAM_CLIENT_ADDRESS=127.0.0.1
TELEGRAM_CLIENT_PORT=9503
SELF_URL=http://127.0.0.1:9504
# SYSTEM
TIMEZONE=UTC
MEMORY_LIMIT=128M
# MAX size in bytes for media files from posts.
# 30 Mb
MAX_MEDIA_SIZE=31457280
# ACCESS CONTROL
# Allowed number of request per last 60 seconds from one IP
# Examples:
# -1 - disable RPM check.
# 0 - deny all request
# 15 - 15 requests per last 60 seconds.
RPM=15
MEDIA_RPM=45
# Allowed number of errors per minute
# Examples:
# -1 - allow any number of errors
# 0 - ban after first error
# 2 - allow 2 errors per minute: ban on 3rd error.
ERRORS_LIMIT=0;
MEDIA_ERRORS_LIMIT=2;
# Json list of addresses with custom RPM and errors limits.
# Its a WHITELIST and a BLACKLIST at same time.
# Override DEDAULT_RPM and DEFAULT_ERRORS_LIMIT for individual IPs.
# Example:
# {
# \"127.0.0.1\": {\"rpm\":-1, \"errors_limit\":-1},
# \"1.1.1.1\": {\"rpm\":0, \"media_rpm\":1, \"errors_limit\":0, \"media_errors_limit\":2,},
# \"8.8.8.8\": {\"rpm\":0, \"errors_limit\":0}
# }
CLIENTS_SETTINGS="{
\"127.0.0.1\": {\"rpm\":-1, \"errors_limit\":-1}
}"
# Set to 0 if you need to output any channels, chats, etc.
# Warnign! All client chats will be vissible to users.
# Make sure to protect this server from internet requests, if you disable this option.
ONLY_PUBLIC_CHANNELS=1
# Regex to disable some channels/users.
# Example: "(username1|username2|user.*name)"
# Leave blanc to disable
FORBIDDEN_PEER_REGEX=""
# LOGS
# You can use absolete or relative dir path. No trail slash.
# Remove LOGS_FILE value to enable echo logging
# Use date format symbols with prepend '%' http://php.net/manual/function.date.php
LOGS_DIR=log
LOGS_FILE=%Y-%m-%d_requests.log