changeset 580:ca535e7eb0ed

urllog: Update example configuration.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jan 2021 12:18:39 +0200
parents fec0911e9ef9
children 148c7553c50f
files config.urllog.example
diffstat 1 files changed, 24 insertions(+), 35 deletions(-) [+]
line wrap: on
line diff
--- a/config.urllog.example	Mon Jan 04 12:17:43 2021 +0200
+++ b/config.urllog.example	Mon Jan 04 12:18:39 2021 +0200
@@ -11,7 +11,7 @@
 # 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"
+set urllog_log_channels "*"
 
 # Channels where URLLog announces URL titles and so on
 # By default we set this to same as urllog_log_channels
@@ -32,9 +32,8 @@
 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.)
+### 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
@@ -43,15 +42,6 @@
 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
 
@@ -99,7 +89,27 @@
 set urllog_shorturl_orig 30
 
 # Web server URL that handles redirects of ShortURLs
-set urllog_shorturl_prefix "http://tnsp.org/u/"
+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"
 
 
 ###
@@ -125,25 +135,4 @@
 # 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"