mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-25 04:45:50 +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.
|
If you want to disable caching you can set cache type to array (in-memory cache):
|
||||||
Do not enable debug mode on a public server, unless you understand the implications of your doing!
|
|
||||||
|
|
||||||
***
|
```ini
|
||||||
|
[cache]
|
||||||
|
|
||||||
Debug mode enables error reporting and prevents loading data from the cache (data is still written to the cache).
|
; Cache type: file, sqlite, memcached, array, null
|
||||||
To enable debug mode, set in `config.ini.php`:
|
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
|
$middlewares = [
|
||||||
debug_mode_whitelist[] = 192.168.1.10
|
new BasicAuthMiddleware(),
|
||||||
|
- new CacheMiddleware($this->container['cache']),
|
||||||
_Notice_:
|
+ //new CacheMiddleware($this->container['cache']),
|
||||||
|
new ExceptionMiddleware($this->container['logger']),
|
||||||
* An empty file enables debug mode for anyone!
|
new SecurityMiddleware(),
|
||||||
* The bridge whitelist still applies! (debug mode does **not** enable all bridges)
|
new MaintenanceMiddleware(),
|
||||||
|
```
|
||||||
RSS-Bridge will give you a visual feedback when debug mode is enabled.
|
|
@ -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)
|
- [Coding style policy](./01_Coding_style_policy.md)
|
||||||
- [Folder structure](./03_Folder_structure.md)
|
- [Folder structure](./03_Folder_structure.md)
|
||||||
- [Debug mode](./05_Debug_mode.md)
|
|
||||||
- [Bridge API](../05_Bridge_API/index.md)
|
- [Bridge API](../05_Bridge_API/index.md)
|
||||||
- [Cache API](../07_Cache_API/index.md)
|
- [Cache API](../07_Cache_API/index.md)
|
||||||
- [Technical recommendations](../09_Technical_recommendations/index.md)
|
- [Technical recommendations](../09_Technical_recommendations/index.md)
|
||||||
|
Loading…
Reference in New Issue
Block a user