aboutsummaryrefslogtreecommitdiff
path: root/lib/Configuration.php (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-07refactor: change the way dependencies are wired (#4194)Gravatar Dag 1-0/+3
* refactor: change the way dependencies are setup * lint
2024-02-02fix: prepare release (#3945)2024-02-02Gravatar Dag 1-1/+1
2024-01-09chore: add tools for manually administrating the configured cache (#3867)Gravatar Dag 1-1/+1
2023-12-13fix(arstechnica): plus a few unrelated tweaks (#3829)Gravatar Dag 1-13/+2
2023-10-01refactor (#3712)Gravatar Dag 1-12/+0
* test: refactor test suite * docs * refactor * yup * docs
2023-09-24chore: prepare 2023-09-24 release (#3703)2023-09-24Gravatar Dag 1-1/+1
2023-09-10fix: rewrite and improve caching (#3594)Gravatar Dag 1-4/+3
2023-07-30[core] fix new bridge PRs not generating html preview artifacts (#3583)Gravatar User123698745 1-1/+1
* [core] replace everything except bridge name to get a valid whitelist.txt * [core] do not use hard code repository name to improve working with forks * [core] trim bridge names from whitelist.txt to reduce chance of failure
2023-07-12Update Configuration.php - Old Version Date in new Release (#3526)Gravatar Fake4d 1-1/+1
Old Version Date in new Release
2023-07-07fix: discard empty lines in whitelist.txt (#3507)Gravatar Dag 1-3/+3
2023-07-05feat: add default arg to Configuration::getConfig (#3331)Gravatar Dag 1-2/+2
2023-07-02fix: dont be case-sensitive on env vars (#3475)Gravatar Dag 1-0/+1
2023-06-11feat: enable bridges using env var (#3428)Gravatar Dag 1-8/+34
* refactor: bridgefactory, add tests * refactor: move defaultly enabled bridges to config * refactor * refactor * feat: add support for enabling bridges with env var
2023-06-02fix: move debug mode to config (#3324)Gravatar Dag 1-0/+16
* fix: move debug mode to config * fix: also move debug_whitelist to .ini config * fix: move logic back to Debug class * docs * docs * fix: disable debug mode by default * fix: restore previous behavior for alerts * fix: center-align alert text
2023-03-22Prepare 2023-03-21 release (#3323)2023-03-22Gravatar Dag 1-1/+1
* fix: upgrade version string in php code
2022-09-12fix: dont error out for invalid env names (#3030)Gravatar Dag 1-0/+4
2022-09-04fix: include git tag in version (#3000)Gravatar Dag 1-1/+1
Also include os and php version in github issue template.
2022-09-04fix: php7.3 parser error in Configuration.php (#2999)Gravatar Dag 1-1/+1
Dont fail a basic lint so that the proper error message can be shown when on unsupported versions.
2022-08-31fix: bug in previous refactor (#2992)Gravatar Dag 1-2/+2
fix #2991
2022-08-23fix: case-insensitive config from env, fix #2935 (#2973)Gravatar Dag 1-134/+44
* refactor * fix: case-sensitive config from env, fix #2935 * lowercase all config section and keys * test: add test for case-insensitivity
2022-08-06refactor: general code base refactor (#2950)Gravatar Dag 1-32/+17
* refactor * fix: bug in previous refactor * chore: exclude phpcompat sniff due to bug in phpcompat * fix: do not leak absolute paths * refactor/fix: batch extensions checking, fix DOS issue
2022-08-02refactor: use static values for cache scopeGravatar Dag 1-15/+10
This fixes a future problem when code is placed under a namespace because `get_class($bridge)` will then return e.g. `RssBridge\Bridge\TwitterBridge` instead of the the current value `TwitterBridge`. Also a bit refactoring of `Configuration.php`.
2022-07-24Do not use constants for configuration (#2938)Gravatar Jan Tojnar 1-11/+3
* docs: Do not use constant names when referring to config options The options are customizable using a config file and no longer hardcoded in index.php since https://github.com/RSS-Bridge/rss-bridge/commit/8ac8e08abf25ac43b660e7e3c0b7485f4f6628d7 * Do not use constants for configuration Since <https://github.com/RSS-Bridge/rss-bridge/commit/8ac8e08abf25ac43b660e7e3c0b7485f4f6628d7>, they are just set to the configuration object values.
2022-07-08feat: introduce template engine (#2899)Gravatar Dag 1-2/+5
2022-07-06lib/Configuration: Remove redundant commentGravatar Jan Tojnar 1-20/+10
It was just getting out of sync: - Minimum PHP version was bumped in 8365a7a34dea6750fab4c29541ec1801cdbc83e4 - Cache directory permission check was removed in 8e2b65556f0a5eb063761d594f2fd6ac1b10d154 - Whitelist permission check was removed in d4e867f2403c6224c93d8588fadbde600aec4444
2022-07-01Reformat codebase v4 (#2872)Gravatar Dag 1-293/+317
Reformat code base to PSR12 Co-authored-by: rssbridge <noreply@github.com>
2022-06-19chore: bump required php version to 7.4 (#2838)Gravatar Dag 1-3/+3
* chore: require min php 7.4 * Revert "feat: backport php 7.3 functions (#2803)" This reverts commit 6df5a4bc14abd9aec4ed1936f2b032ce754af358. * [BandcampDaily] use array_key_first * hard fail on php versions below 7.4 * update phpcompat linter
2022-06-14[Release] 2022-06-14 (#2818)2022-06-14Gravatar Yaman Qalieh 1-1/+1
2022-06-10[Configuration.php] Update the version name to dev.2022-06-10 (#2811)Gravatar Kristian Salonen 1-1/+1
2022-03-24[Config] Don't check PATH_CACHE for memcached (#1489)Gravatar Jakub Valenta 1-4/+0
2022-01-20Bump version to dev.2022-01-202022-01-20Gravatar Eugene Molotov 1-1/+1
2021-12-03[core] Implemented feature to read config from environment variables (#2100)Gravatar Bockiii 1-0/+13
2021-12-03[core] Drop php 5.6 and php 7.0 support (#2224)Gravatar Eugene Molotov 1-3/+3
2021-06-26[core] Support for bridge maintainers' donation URLs (#2102)Gravatar Bockiii 1-0/+3
2021-04-25Bump version to dev.2021-04-252021-04-25Gravatar Eugene Molotov 1-1/+1
2020-12-12[core] Add configuration for bridges, allowing private bridges (#1343)Gravatar Lyra 1-6/+1
2020-11-10Bump version to dev.2020-11-102020-11-10Gravatar Eugene Molotov 1-1/+1
2020-05-27[Core] Fix notice of undefined offset when in detached HEAD state. (#1569)Gravatar Michael Bemmerl 1-3/+7
2020-02-26Bump version to dev.2020-02-262020-02-26Gravatar Lyra 1-1/+1
2019-12-01Bump version to dev.2019-12-01Gravatar logmanoriginal 1-1/+1
2019-12-01Bump version to 2019-12-012019-12-01Gravatar logmanoriginal 1-1/+1
2019-10-31core: Add an option to suppress error reporting (#1179)Gravatar LogMANOriginal 1-0/+4
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
2019-10-31core: Add an option to return errors in different formats (#1071)Gravatar LogMANOriginal 1-0/+3
Bridge errors are currently included as part of the feed to notify users about erroneous bridges (before that, bridges silently failed). This solution, however, can produce a high load of error messages if servers are down (see #994 for more details). Admins may also not want to include error messages in feeds in order to keep those kind of problems away from users or simply to silently fail by choice. This commit adds a new configuration section "error" with one option "output" which can be set to following values: "feed": To include error messages in the feed (default) "http": To return a HTTP header for each error "none": To disable error reporting Note that errors are always logged to 'error.log' independent of the settings above. Closes #1066
2019-09-12 [Configuration] Bump version to dev.2019-09-12Gravatar Lyra 1-1/+1
2019-09-12[Configuration] Bump version to 2019-07-062019-09-12Gravatar Lyra 1-1/+1
2019-07-06[Configuration] Bump version to dev.2019-07-06Gravatar logmanoriginal 1-1/+1
2019-07-06[Configuration] Bump version to 2019-07-062019-07-06Gravatar logmanoriginal 1-1/+1
2019-06-08[Configuration] Bump version to dev.2019-06-08Gravatar logmanoriginal 1-1/+1
2019-06-08[Configuration] Bump version to 2019-06-082019-06-08Gravatar logmanoriginal 1-1/+1
2019-06-07[Configuration] Use common format to report errors to the userGravatar logmanoriginal 1-20/+62
Incorrect configuration values are currently handled individually for each condition, resulting in a lot of repetitive operations. This commit adds two new private functions to report errors to the user and end execution of the script.