Improve redirector configuration

This commit is contained in:
video-prize-ranch 2022-11-18 11:57:21 -05:00
parent b8c2f453e5
commit 10289cde51
No known key found for this signature in database
2 changed files with 25 additions and 0 deletions

View File

@ -120,6 +120,20 @@ You can use the [Redirector](https://github.com/einaregilsson/Redirector) extens
* Include pattern: `^https?://i?.?imgur.com(/.*)?$` * Include pattern: `^https?://i?.?imgur.com(/.*)?$`
* Redirect to: `https://rimgo.example.com$1` * Redirect to: `https://rimgo.example.com$1`
* Pattern type: Regular Expression * Pattern type: Regular Expression
* Advanced options:
* Apply to:
* [x] Main window (address bar)
* [x] Images
For Stack Overflow images:
* Description: Stack Overflow Imgur -> rimgo
* Example URL: https://i.stack.imgur.com/BTKqD.png?s=128&g=1
* Include pattern: `^https?://i\.stack\.imgur\.com(/.*)?$`
* Redirect to: `https://rimgo.example.com/stack$1`
* Pattern type: Regular Expression
* Advanced options:
* Apply to:
* [x] Images
## Install ## Install
rimgo can run on any platform Go compiles on. rimgo can run on any platform Go compiles on.

View File

@ -95,6 +95,17 @@
<li>Include pattern: <code>^https?://i?.?imgur.com(/.*)?$</code></li> <li>Include pattern: <code>^https?://i?.?imgur.com(/.*)?$</code></li>
<li>Redirect to: <code>{{proto}}://{{domain}}$1</code></li> <li>Redirect to: <code>{{proto}}://{{domain}}$1</code></li>
<li>Pattern type: Regular Expression</li> <li>Pattern type: Regular Expression</li>
<li>Advanced Options > Apply to: Check Images</li>
</ul>
<p>For Stack Overflow Images:</p>
<ul>
<li>Description: Stack Overflow Imgur -> rimgo</li>
<li>Example URL: https://i.stack.imgur.com/BTKqD.png?s=128&g=1</li>
<li>Include pattern: <code>^https?://i\.stack\.imgur\.com(/.*)?$</code></li>
<li>Redirect to: <code>{{proto}}://{{domain}}/stack$1</code></li>
<li>Pattern type: Regular Expression</li>
<li>Advanced Options > Apply to: Check Images</li>
</ul> </ul>
<h2>Notice</h2> <h2>Notice</h2>