annotate config.feeds.example @ 265:908edc54005a

feeds: Move configuration to separate file.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 23 Jan 2015 10:15:38 +0200
parents
children 8f5daf6631d9
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 ##########################################################################
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 ##########################################################################
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 # SQLite3 database
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 set feeds_dbfile "/home/niinuska/bot/feeds.sqlite"
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
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # 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
9 # (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
10 # 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
11 # See get_feeds.tcl for more information.
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 set feeds_check_period 5
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 # Set channels and feed filters here:
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 # "#channel" "feedname|feedname2"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 # 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
18 array set feeds_channels {
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 "#mazmlame" "the adventurers|oots|mestari|blastwave"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 "#fireball" "mestari"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 "#tnsp" "the adventurers|oots|mestari"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 }
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 set feeds_preferredmsg "PRIVMSG"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 ###
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 ### HTTP options
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 ###
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 # 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
32 # 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
33 set http_use_proxy 0
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 # 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
36 set http_proxy_host ""
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 set http_proxy_port 8080
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 # 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
40 set http_tls_support 1
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 set http_tls_cadir "/usr/share/ca-certificates/mozilla"
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
908edc54005a feeds: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 # 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
44 #set http_user_agent "Mozilla"