mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-24 20:38:36 +00:00
docs
This commit is contained in:
parent
62e4cc3cfe
commit
f136566bc2
@ -1,23 +1,28 @@
|
||||
<h1 align="center">Warning!</h1>
|
||||
Debug mode has been removed.
|
||||
|
||||
Enabling debug mode on a public server may result in malicious clients retrieving sensitive data about your server and possibly gaining access to it.
|
||||
Do not enable debug mode on a public server, unless you understand the implications of your doing!
|
||||
If you want to disable caching you can set cache type to array (in-memory cache):
|
||||
|
||||
***
|
||||
```ini
|
||||
[cache]
|
||||
|
||||
Debug mode enables error reporting and prevents loading data from the cache (data is still written to the cache).
|
||||
To enable debug mode, set in `config.ini.php`:
|
||||
; Cache type: file, sqlite, memcached, array, null
|
||||
type = "array"
|
||||
```
|
||||
|
||||
enable_debug_mode = true
|
||||
Alternatively, you can comment out the cache middleware in `lib/RssBridge.php`:
|
||||
|
||||
Allow only explicit ip addresses:
|
||||
```diff
|
||||
diff --git a/lib/RssBridge.php b/lib/RssBridge.php
|
||||
index d16f1d89..da3df8be 100644
|
||||
--- a/lib/RssBridge.php
|
||||
+++ b/lib/RssBridge.php
|
||||
@@ -24,7 +24,7 @@ final class RssBridge
|
||||
|
||||
debug_mode_whitelist[] = 127.0.0.1
|
||||
debug_mode_whitelist[] = 192.168.1.10
|
||||
|
||||
_Notice_:
|
||||
|
||||
* An empty file enables debug mode for anyone!
|
||||
* The bridge whitelist still applies! (debug mode does **not** enable all bridges)
|
||||
|
||||
RSS-Bridge will give you a visual feedback when debug mode is enabled.
|
||||
$middlewares = [
|
||||
new BasicAuthMiddleware(),
|
||||
- new CacheMiddleware($this->container['cache']),
|
||||
+ //new CacheMiddleware($this->container['cache']),
|
||||
new ExceptionMiddleware($this->container['logger']),
|
||||
new SecurityMiddleware(),
|
||||
new MaintenanceMiddleware(),
|
||||
```
|
@ -6,7 +6,6 @@ If you are new to **RSS-Bridge** you should make yourself familiar with some gen
|
||||
|
||||
- [Coding style policy](./01_Coding_style_policy.md)
|
||||
- [Folder structure](./03_Folder_structure.md)
|
||||
- [Debug mode](./05_Debug_mode.md)
|
||||
- [Bridge API](../05_Bridge_API/index.md)
|
||||
- [Cache API](../07_Cache_API/index.md)
|
||||
- [Technical recommendations](../09_Technical_recommendations/index.md)
|
||||
|
Loading…
Reference in New Issue
Block a user