mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
core: Move default bridges to whitelist.default.txt
Default bridges are currently statically defined in index.php, which is not the right place if we want to keep responsibilities separated. This commit introduces a new file whitelist.default.txt that holds the default bridges and which is loaded automatically, if whitelist.txt doesn't exist. Due to this it is also no longer necessary to have write permission for the root directory. References #1001
This commit is contained in:
@@ -38,6 +38,9 @@ define('PATH_CACHE', __DIR__ . '/../cache/');
|
||||
/** Path to the whitelist file */
|
||||
define('WHITELIST', __DIR__ . '/../whitelist.txt');
|
||||
|
||||
/** Path to the default whitelist file */
|
||||
define('WHITELIST_DEFAULT', __DIR__ . '/../whitelist.default.txt');
|
||||
|
||||
/** URL to the RSS-Bridge repository */
|
||||
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');
|
||||
|
||||
|
Reference in New Issue
Block a user