matrix-rssbot/config.dist.ini
Kumi 08fbba0e0a
feat: add support for proxying feed requests
Introduced optional proxy configuration for fetching RSS feeds,
including support for using Tor SOCKS5 proxy for enhanced privacy.
Added properties to manage proxy settings and updated fetch
functionality to utilize the proxy when necessary. This helps route
requests through specified proxies, supporting privacy use cases
like accessing .onion URLs.
2024-06-15 19:58:15 +02:00

89 lines
2.6 KiB
INI

# Copy this file to config.ini and replace the values below to match your needs
#
# The values that are not commented have to be set, everything else comes with
# sensible defaults.
###############################################################################
[RSSBot]
# Some way for the user to contact you.
# Ideally, either your personal user ID or a support room
# If this is your user ID and Debug is 1, any errors that occur when using the script will be reported to you in detail
#
Operator = Contact details not set
# Minimum duration of a single loop
# By default, this is set to 300, meaning that rooms get updated approximately every 300 seconds, unless the total loop takes longer
#
# LoopDuration = 300
# Enable debug mode
# Will send error tracebacks to you (= Operator above) if an error occurs processing a message from you
# Defaults to 0 (= off)
#
# Debug = 1
# The default room name used by the !newroom command
# Defaults to RSSBot if not set
#
# DefaultRoomName = RSSBot
# Display name for the bot
#
# DisplayName = RSSBot
# A list of allowed users
# If not defined, everyone is allowed to use the bot
# Use the "*:homeserver.matrix" syntax to allow everyone on a given homeserver
#
# AllowedUsers = ["*:matrix.local"]
# Minimum level of log messages that should be printed
# Available log levels in ascending order: trace, debug, info, warning, error, critical
# Defaults to info
#
LogLevel = info
# The URL to a proxy server to use for requests to feeds, if any
# For example, if you want to use the Tor network, you can set this to
# "socks5://127.0.0.1:9050"
#
# Proxy = socks5://yourproxy:port
# Set to 1 if the proxy should only be used for .onion addresses
# Defaults to 0
#
# ProxyOnionOnly = 1
###############################################################################
[Matrix]
# The URL to your Matrix homeserver
#
# If you are using Pantalaimon, this should be the URL of your Pantalaimon
# instance, not the Matrix homeserver itself.
#
Homeserver = https://matrix.local
# An Access Token for the user your bot runs as
# Can be obtained using a request like this:
#
# See https://www.matrix.org/docs/guides/client-server-api#login
# for information on how to obtain this value
#
AccessToken = syt_yoursynapsetoken
# The Matrix user ID of the bot (@local:domain.tld)
# Only specify this if the bot fails to figure it out by itself
#
# UserID = @rssbot:matrix.local
# The event type to use for sending messages
# Can be either "text" or "notice"
# Defaults to "notice", can be overridden using the `eventtype` command
#
# EventType = notice
###############################################################################