chore: add tools for manually administrating the configured cache (#3867)

This commit is contained in:
Dag 2024-01-09 20:33:35 +01:00 committed by GitHub
parent 3ce94409ab
commit 0bf5dbbc0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 95 additions and 45 deletions

View file

@ -2,9 +2,14 @@ PixivBridge
===============
# Image proxy
As Pixiv requires images to be loaded with the `Referer "https://www.pixiv.net/"` header set, caching or image proxy is required to use this bridge.
To turn off image caching, set the `proxy_url` value in this bridge's configuration section of `config.ini.php` to the url of the proxy. The bridge will then use the proxy in this format (essentially replacing `https://i.pximg.net` with the proxy):
As Pixiv requires images to be loaded with the `Referer "https://www.pixiv.net/"` header set,
caching or image proxy is required to use this bridge.
To turn off image caching, set the `proxy_url` value in this bridge's configuration section of `config.ini.php`
to the url of the proxy.
The bridge will then use the proxy in this format (essentially replacing `https://i.pximg.net` with the proxy):
Before: `https://i.pximg.net/img-original/img/0000/00/00/00/00/00/12345678_p0.png`
@ -15,9 +20,11 @@ proxy_url = "https://proxy.example.com"
```
# Authentication
Authentication is required to view and search R-18+ and non-public images. To enable this, set the following in this bridge's configuration in `config.ini.php`.
```
Authentication is required to view and search R-18+ and non-public images.
To enable this, set the following in this bridge's configuration in `config.ini.php`.
```ini
; from cookie "PHPSESSID". Recommend to get in incognito browser.
cookie = "00000000_hashedsessionidhere"
```