annotate config.feeds.example @ 415:ff932030a9b3

weather: Bump version.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Jan 2017 22:41:07 +0200
parents e5a9aaf250b3
children 35d7be5db18b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
265
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 ##########################################################################
266
8f5daf6631d9 Add comment.
Matti Hamalainen <ccr@tnsp.org>
parents: 265
diff changeset
2 #
8f5daf6631d9 Add comment.
Matti Hamalainen <ccr@tnsp.org>
parents: 265
diff changeset
3 # Feeds script and fetcher script configuration
8f5daf6631d9 Add comment.
Matti Hamalainen <ccr@tnsp.org>
parents: 265
diff changeset
4 #
265
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 ##########################################################################
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 # SQLite3 database
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 set feeds_dbfile "/home/niinuska/bot/feeds.sqlite"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 # How often to check for newly added feed items from the database?
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 # (in minutes) This has nothing to do how often the backend script
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # is run and actually scans / pulls the feeds, that is done in CRON.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # See get_feeds.tcl for more information.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 set feeds_check_period 5
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
351
0f55bbb7fea3 feeds: Improve safety checks and add new configuration setting.
Matti Hamalainen <ccr@tnsp.org>
parents: 266
diff changeset
18 # Limit / number of new feed items allowed to be published
0f55bbb7fea3 feeds: Improve safety checks and add new configuration setting.
Matti Hamalainen <ccr@tnsp.org>
parents: 266
diff changeset
19 # after which situation is considered unsynchronized / spam and
0f55bbb7fea3 feeds: Improve safety checks and add new configuration setting.
Matti Hamalainen <ccr@tnsp.org>
parents: 266
diff changeset
20 # none of the new items are published.
362
e5a9aaf250b3 feeds: Lower the default feeds item limit value in example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 351
diff changeset
21 set feeds_sync_limit 10
351
0f55bbb7fea3 feeds: Improve safety checks and add new configuration setting.
Matti Hamalainen <ccr@tnsp.org>
parents: 266
diff changeset
22
0f55bbb7fea3 feeds: Improve safety checks and add new configuration setting.
Matti Hamalainen <ccr@tnsp.org>
parents: 266
diff changeset
23
265
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 # Set channels and feed filters here:
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 # "#channel" "feedname|feedname2"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 # feednames can use matching, e.g. "mtv3*" would match all beginning with "mtv3"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 array set feeds_channels {
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 "#mazmlame" "the adventurers|oots|mestari|blastwave"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 "#fireball" "mestari"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 "#tnsp" "the adventurers|oots|mestari"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 }
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 set feeds_preferredmsg "PRIVMSG"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 ###
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 ### HTTP options
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 ###
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 # Set to 1 if you want to enable use of HTTP proxy.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 # If you do, you MUST set the proxy settings below too.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 set http_use_proxy 0
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 # Proxy host and port number (only used if enabled above)
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 set http_proxy_host ""
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 set http_proxy_port 8080
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48 # Enable TLS/SSL support. You need to set http_tls_cadir.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49 set http_tls_support 1
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 set http_tls_cadir "/usr/share/ca-certificates/mozilla"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 # Set 'user agent' string for HTTP. If empty or not set, default will be used.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 #set http_user_agent "Mozilla"