mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 03:50:42 +03:00
1022b5fdf9
Error reporting currently takes place for each error. This can result in many error messages if a server has connectivity issues (i.e. when it re-connects to the internet every 24 hours). This commit adds a new option to the configuration file to define the number of error reports to suppress before returning an error message to the user. Error reports are cached and therefore automatically purged after 24 hours. A successful bridge request does **not** clear the error count as sporadic issues can be the result of actual problems on the server. The implementation currently makes no assumption on the type of error, which means it also suppresses bridge errors in debug mode. The default value is, however, set to 1 which means all errors are reported. References #994
83 lines
2.1 KiB
PHP
83 lines
2.1 KiB
PHP
; <?php exit; ?> DO NOT REMOVE THIS LINE
|
|
|
|
; This file contains the default settings for RSS-Bridge. Do not change this
|
|
; file, it will be replaced on the next update of RSS-Bridge! You can specify
|
|
; your own configuration in 'config.ini.php' (copy this file).
|
|
|
|
[system]
|
|
|
|
; Defines the timezone used by RSS-Bridge
|
|
; Find a list of supported timezones at
|
|
; https://www.php.net/manual/en/timezones.php
|
|
; timezone = "UTC" (default)
|
|
timezone = "UTC"
|
|
|
|
[cache]
|
|
|
|
; Defines the cache type used by RSS-Bridge
|
|
; "file" = FileCache (default)
|
|
type = "file"
|
|
|
|
; Allow users to specify custom timeout for specific requests.
|
|
; true = enabled
|
|
; false = disabled (default)
|
|
custom_timeout = false
|
|
|
|
[admin]
|
|
; Advertise an email address where people can reach the administrator.
|
|
; This address is displayed on the main page, visible to everyone!
|
|
; "" = Disabled (default)
|
|
email = ""
|
|
|
|
[proxy]
|
|
|
|
; Sets the proxy url (i.e. "tcp://192.168.0.0:32")
|
|
; "" = Proxy disabled (default)
|
|
url = ""
|
|
|
|
; Sets the proxy name that is shown on the bridge instead of the proxy url.
|
|
; "" = Show proxy url
|
|
name = "Hidden proxy name"
|
|
|
|
; Allow users to disable proxy usage for specific requests.
|
|
; true = enabled
|
|
; false = disabled (default)
|
|
by_bridge = false
|
|
|
|
[authentication]
|
|
|
|
; Enables authentication for all requests to this RSS-Bridge instance.
|
|
;
|
|
; Warning: You'll have to upgrade existing feeds after enabling this option!
|
|
;
|
|
; true = enabled
|
|
; false = disabled (default)
|
|
enable = false
|
|
|
|
; The username for authentication. Insert this name when prompted for login.
|
|
username = ""
|
|
|
|
; The password for authentication. Insert this password when prompted for login.
|
|
; Use a strong password to prevent others from guessing your login!
|
|
password = ""
|
|
|
|
[error]
|
|
|
|
; Defines how error messages are returned by RSS-Bridge
|
|
;
|
|
; "feed" = As part of the feed (default)
|
|
; "http" = As HTTP error message
|
|
; "none" = No errors are reported
|
|
output = "feed"
|
|
|
|
; Defines how often an error must occur before it is reported to the user
|
|
report_limit = 1
|
|
|
|
; --- Cache specific configuration ---------------------------------------------
|
|
|
|
[SQLiteCache]
|
|
file = "cache.sqlite"
|
|
|
|
[MemcachedCache]
|
|
host = "localhost"
|
|
port = 11211
|