view config.urllog.example @ 581:148c7553c50f

urllog: Remove rasiatube hack setting, it's not used.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jan 2021 12:20:38 +0200
parents ca535e7eb0ed
children 2294b73df2cf
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 "*"

# 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


### Various additional checks for URL validity: (1 = enabled, 0 = disabled)
### This is REQUIRED for document title fetching/storage
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


### 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 "https://tnsp.org/u/"


###
### 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"


###
### 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."