view config.urllog.example @ 415:ff932030a9b3

weather: Bump version.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Jan 2017 22:41:07 +0200
parents 1c9a40b47cd5
children ca535e7eb0ed
line wrap: on
line source

##########################################################################
#
# URLLog script configuration
#
##########################################################################

###
### General options
###

# Channels where URLLog records links/URLs
# set urllog_log_channels "#foobar;#baz"
# You can use * to match substrings or everything
set urllog_log_channels "#tnsp;#fireball;#mazmlame"

# Channels where URLLog announces URL titles and so on
# By default we set this to same as urllog_log_channels
set urllog_msg_channels $urllog_log_channels


# Filename of the SQLite URL database file
set urllog_db_file "urllog.sqlite"


# 1 = Verbose: Say messages when URL is OK, bad, etc.
# 0 = Quiet  : Be quiet (only speak if asked with !urlfind, etc)
set urllog_verbose 1


# 1 = Enable logging of various script actions into bot's log
# 0 = Don't.
set urllog_log_enable 1


# 1 = Check URLs for validity and existence before adding.
# 0 = No checks. Add almost _anything_ that looks like an URL to the database.
# (You probably want this enabled.)
set urllog_extra_checks 1

### Set to 1 if you want "strict" extra checking. This will cause
### ftp URLs not being added, and if TLS support is disabled, https URLs
### will not be added either. You probably don't want this set.
set urllog_extra_strict 0


### Check if the TLD (top level domain) looks sane. You might want to disable
### this, because lately (as of 2013+) ICANN has allowed addition of loads
### and loads of new TLDs which would be impossible to keep list of here ..
set urllog_check_tld 1

# The valid known Top Level Domains (TLDs), but not the country code TLDs
set urllog_tld_list "org,com,net,mil,gov,biz,edu,coop,aero,info,museum,name,pro,int,xxx,moe,party"


### Enable "rasiatube" hack that de-mangles rasiatube links
set urllog_rasiatube_hack 1


### What IRC "command" should we use to send messages:
# (Valid alternatives are "PRIVMSG" and "NOTICE")
set urllog_preferredmsg "PRIVMSG"


###
### Search related settings
###

# Channels where !urlfind and other commands can be used.
# By default this is set to be the same as urllog_log_channels
set urllog_search_channels $urllog_log_channels

# Limit how many URLs should the "!urlfind" command show at most.
set urllog_showmax_pub 3

# Same as above, but for private message search.
set urllog_showmax_priv 6


###
### ShortURL-settings
###
# To enable ShortURL functionality, you need to set up the
# URL redirector PHP script (urlredirect.php) correctly, and
# enable change the settings in it and below appropriately.
# See urlredirect.php.txt for more information.
#
# You will also need DBO support for PHP and access to
# change .htaccess file(s) on your web server. The PHP
# script will also need access to the database this
# script uses.
#

# 1 = Enable showing of ShortURLs
# 0 = ShortURLs not shown in any bot actions
set urllog_shorturl 1

# Max length of original URL to be shown, rest is chopped
# off if the URL is longer than the specified amount.
set urllog_shorturl_orig 30

# Web server URL that handles redirects of ShortURLs
set urllog_shorturl_prefix "http://tnsp.org/u/"


###
### Message texts (informal, errors, etc.)
###

# No such host was found
set urlmsg_nosuchhost "ei tommosta oo!"

# Could not connect host (I/O errors etc)
set urlmsg_ioerror "kraak, virhe yhdynnässä."

# HTTP timeout occured
set urlmsg_timeout "ei jaksa ootella"

# No such document was found or other error
set urlmsg_errorgettingdoc "siitosvirhe"

# URL was already known (was in database)
set urlmsg_alreadyknown "wanha!"
#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."

# No match was found when searched with !urlfind or other command
set urlmsg_nomatch "Ei osumia."

# Message for "unknown top level domain", see urllog_check_tld setting
set urlmsg_unknown_tld "Tuntematon TLD!"


###
### HTTP options
###
# Set to 1 if you want to enable use of HTTP proxy.
# If you do, you MUST set the proxy settings below too.
set http_use_proxy 0

# Proxy host and port number (only used if enabled above)
set http_proxy_host ""
set http_proxy_port 8080


# Enable TLS/SSL support. If disabled, https URLs won't be added at all.
# If you enable this setting, you need to set http_tls_cadir to point to
# correct location as well!
set http_tls_support 1

set http_tls_cadir "/usr/share/ca-certificates/mozilla"