forked from indes/flowerss-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml.sample
51 lines (43 loc) · 1.04 KB
/
config.yml.sample
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
bot_token:
telegraph_token:
telegraph_account:
telegraph_author_name:
telegraph_author_url:
socks5:
update_interval: 10
user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
mysql:
host:
port:
user:
password:
database:
telegram:
endpoint:
log:
level: release
db_log: false # 打印数据库日志,false则只会打印数据库错误日志
# file: ./flowerss.log
sqlite:
path: ./data.db
allowed_users:
merge_message:
enable: true
item_tpl: |
{{if .EnableTelegraph}}
[{{.ContentTitle}}]({{.TelegraphURL}}) - [原文]({{.RawLink}})
{{- else }}
[{{.ContentTitle}}]({{.RawLink}})
{{- end }}
message_mode: md
message_tpl: |
** {{.SourceTitle}} **{{ if .PreviewText }}
---------- Preview ----------
{{.PreviewText}}
-----------------------------
{{- end}}{{if .EnableTelegraph}}
{{.ContentTitle}} [Telegraph]({{.TelegraphURL}}) | [原文]({{.RawLink}})
{{- else }}
[{{.ContentTitle}}]({{.RawLink}})
{{- end }}
{{.Tags}}