annotate config.urllog.example @ 302:f487cc166714

urllog: Add message for unknown TLDs.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 27 Jan 2015 08:39:21 +0200
parents 916618770490
children a55beb347bad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 ##########################################################################
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 #
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # URLLog script configuration
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 ##########################################################################
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 ### General options
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 # Channels where URLLog records links/URLs
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 # set urllog_log_channels "#foobar;#baz"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # You can use * to match substrings or everything
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 set urllog_log_channels "#tnsp;#fireball;#mazmlame"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 # Filename of the SQLite URL database file
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 set urllog_db_file "urllog.sqlite"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 # 1 = Verbose: Say messages when URL is OK, bad, etc.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # 0 = Quiet : Be quiet (only speak if asked with !urlfind, etc)
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 set urllog_verbose 1
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 # 1 = Enable logging of various script actions into bot's log
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 # 0 = Don't.
267
da239a953e24 urllog: Change some setting names, etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 264
diff changeset
28 set urllog_log_enable 1
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 # 1 = Check URLs for validity and existence before adding.
267
da239a953e24 urllog: Change some setting names, etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 264
diff changeset
32 # 0 = No checks. Add almost _anything_ that looks like an URL to the database.
da239a953e24 urllog: Change some setting names, etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 264
diff changeset
33 # (You probably want this enabled.)
da239a953e24 urllog: Change some setting names, etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 264
diff changeset
34 set urllog_extra_checks 1
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
302
f487cc166714 urllog: Add message for unknown TLDs.
Matti Hamalainen <ccr@tnsp.org>
parents: 301
diff changeset
36 ### Check if the TLD (top level domain) looks sane. You might want to disable
f487cc166714 urllog: Add message for unknown TLDs.
Matti Hamalainen <ccr@tnsp.org>
parents: 301
diff changeset
37 ### this, because lately (as of 2013+) ICANN has allowed addition of loads
f487cc166714 urllog: Add message for unknown TLDs.
Matti Hamalainen <ccr@tnsp.org>
parents: 301
diff changeset
38 ### and loads of new TLDs which would be impossible to keep list of here ..
300
2a9ee3f68225 urllog: Make TLD check configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 299
diff changeset
39 set urllog_check_tld 1
2a9ee3f68225 urllog: Make TLD check configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 299
diff changeset
40
2a9ee3f68225 urllog: Make TLD check configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 299
diff changeset
41 # The valid known Top Level Domains (TLDs), but not the country code TLDs
2a9ee3f68225 urllog: Make TLD check configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 299
diff changeset
42 set urllog_tld_list "org,com,net,mil,gov,biz,edu,coop,aero,info,museum,name,pro,int,xxx"
2a9ee3f68225 urllog: Make TLD check configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 299
diff changeset
43
2a9ee3f68225 urllog: Make TLD check configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 299
diff changeset
44
299
1ff281e821a3 urllog: Make rasiatube hack configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 277
diff changeset
45 ### Enable "rasiatube" hack that de-mangles rasiatube links
1ff281e821a3 urllog: Make rasiatube hack configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 277
diff changeset
46 set urllog_rasiatube_hack 1
1ff281e821a3 urllog: Make rasiatube hack configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 277
diff changeset
47
1ff281e821a3 urllog: Make rasiatube hack configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 277
diff changeset
48
301
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
49 ### What IRC "command" should we use to send messages:
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
50 # (Valid alternatives are "PRIVMSG" and "NOTICE")
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
51 set urllog_preferredmsg "PRIVMSG"
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
52
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55 ### Search related settings
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 # Channels where !urlfind and other commands can be used.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59 # By default this is set to be the same as urllog_log_channels
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 set urllog_search_channels $urllog_log_channels
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62 # Limit how many URLs should the "!urlfind" command show at most.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
63 set urllog_showmax_pub 3
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
65 # Same as above, but for private message search.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66 set urllog_showmax_priv 6
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
69 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 ### ShortURL-settings
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72 # To enable ShortURL functionality, you need to set up the
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 # URL redirector PHP script (urlredirect.php) correctly, and
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74 # enable change the settings in it and below appropriately.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 # See urlredirect.php.txt for more information.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76 #
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
77 # You will also need SQLite3 support for PHP and access to
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
78 # change .htaccess file(s) on your web server. The PHP
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79 # script will also need access to the SQLite3 database this
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
80 # script uses.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
81 #
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
82
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
83 # 1 = Enable showing of ShortURLs
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
84 # 0 = ShortURLs not shown in any bot actions
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
85 set urllog_shorturl 1
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
86
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
87 # Max length of original URL to be shown, rest is chopped
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
88 # off if the URL is longer than the specified amount.
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
89 set urllog_shorturl_orig 30
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
90
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
91 # Web server URL that handles redirects of ShortURLs
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
92 set urllog_shorturl_prefix "http://tnsp.org/u/"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
93
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
94
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
95 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
96 ### Message texts (informal, errors, etc.)
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
97 ###
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
98
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
99 # No such host was found
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
100 set urlmsg_nosuchhost "ei tommosta oo!"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
101
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
102 # Could not connect host (I/O errors etc)
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
103 set urlmsg_ioerror "kraak, virhe yhdynnässä."
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
104
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
105 # HTTP timeout
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
106 set urlmsg_timeout "ei jaksa ootella"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
107
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
108 # No such document was found
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
109 set urlmsg_errorgettingdoc "siitosvirhe"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
110
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
111 # URL was already known (was in database)
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
112 set urlmsg_alreadyknown "wanha!"
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
113 #set urlmsg_alreadyknown "Empiiristen havaintojen perusteella ja tällä sovellutusalueella esiintyneisiin aikaisempiin kontekstuaalisiin ilmaisuihin viitaten uskallan todeta, että sovellukseen ilmoittamasi tietoverkko-osoite oli kronologisti ajatellen varsin postpresentuaalisesti sopimaton ja ennestään hyvin tunnettu."
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
114
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
115 # No match was found when searched with !urlfind or other command
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
116 set urlmsg_nomatch "Ei osumia."
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
117
302
f487cc166714 urllog: Add message for unknown TLDs.
Matti Hamalainen <ccr@tnsp.org>
parents: 301
diff changeset
118 # Message for "unknown top level domain", see urllog_check_tld setting
f487cc166714 urllog: Add message for unknown TLDs.
Matti Hamalainen <ccr@tnsp.org>
parents: 301
diff changeset
119 set urlmsg_unknown_tld "Tuntematon TLD!"
f487cc166714 urllog: Add message for unknown TLDs.
Matti Hamalainen <ccr@tnsp.org>
parents: 301
diff changeset
120
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
121
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
122 ###
301
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
123 ### HTTP options
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
124 ###
301
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
125 # Set to 1 if you want to enable use of HTTP proxy.
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
126 # If you do, you MUST set the proxy settings below too.
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
127 set http_use_proxy 0
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
128
301
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
129 # Proxy host and port number (only used if enabled above)
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
130 set http_proxy_host ""
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
131 set http_proxy_port 8080
263
f01d60175c44 urllog: Move configuration to external file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
132
301
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
133 # Enable _experimental_ TLS/SSL support. This may not work at all.
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
134 # If unsure, leave this option disabled (0).
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
135 set http_tls_support 1
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
136
916618770490 urllog: Make ordering of the configuration bit saner.
Matti Hamalainen <ccr@tnsp.org>
parents: 300
diff changeset
137 set http_tls_cadir "/usr/share/ca-certificates/mozilla"