# HG changeset patch # User Matti Hamalainen # Date 1609755519 -7200 # Node ID ca535e7eb0ed0b6c040aa2086d7d0b4c77b7d0a2 # Parent fec0911e9ef954714ed0e8bd07dbfaf156b96bfa urllog: Update example configuration. diff -r fec0911e9ef9 -r ca535e7eb0ed config.urllog.example --- 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"