forked from teler-sh/teler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teler.example.yaml
49 lines (42 loc) · 1.27 KB
/
teler.example.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
# To write log format, see https://github.com/kitabisa/teler#configuration
log_format: |
$remote_addr - [$remote_addr] $remote_user - [$time_local]
"$request_method $request_uri $request_protocol" $status $body_bytes_sent
"$http_referer" "$http_user_agent" $request_length $request_time
[$proxy_upstream_name] $upstream_addr $upstream_response_length $upstream_response_time $upstream_status $req_id
rules:
cache: true
threat:
excludes:
# - "Common Web Attack"
# - "CVE"
# - "Bad IP Address"
# - "Bad Referrer"
# - "Bad Crawler"
# - "Directory Bruteforce"
# It can be user-agent, request path, HTTP referrer, IP address and/or request query values parsed in regExp
whitelists:
# - "(curl|Go-http-client|okhttp)/*"
# - "^/wp-login\\.php"
# - "https://www\\.facebook\\.com"
# - "192\\.168\\.0\\.1"
prometheus:
active: false
host: "localhost"
port: 9099
endpoint: "/metrics"
alert:
active: false
provider: "slack"
notifications:
slack:
token: "xoxo-...."
color: "#ffd21a"
channel: "G30SPKI"
telegram:
token: "123456:ABC-DEF1234...-..."
chat_id: "-111000"
discord:
token: "NkWkawkawkawkawka.X0xo.n-kmZwA8aWAA"
color: "16312092"
channel: "700000000000000..."