Replace Redirector with LibRedirect
This commit is contained in:
parent
d96e0768bc
commit
ff8017d9b1
|
@ -11,7 +11,6 @@ func HandleFrontpage(c *fiber.Ctx) error {
|
|||
c.Set("Content-Security-Policy", "default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'; block-all-mixed-content")
|
||||
|
||||
return c.Render("frontpage", fiber.Map{
|
||||
"proto": c.Protocol(),
|
||||
"domain": c.Hostname(),
|
||||
})
|
||||
}
|
|
@ -39,18 +39,7 @@
|
|||
|
||||
<h2>Usage</h2>
|
||||
|
||||
<p>Just replace imgur.com with the domain of this instance! You can setup automatic redirects using <a href="https://github.com/einaregilsson/Redirector">Redirector</a>.</p>
|
||||
|
||||
<h3>Redirector configuration</h3>
|
||||
|
||||
<ul>
|
||||
<li>Description: Imgur -> rimgo</li>
|
||||
<li>Example URL: https://imgur.com/a/H8M4rcp</li>
|
||||
<li>Include pattern: <code>^https?://(i|).?imgur.com(/.*)?$</code></li>
|
||||
<li>Redirect to: <code>{{proto}}://{{domain}}$2</code></li>
|
||||
<li>Pattern type: Regular Expression</li>
|
||||
</ul>
|
||||
|
||||
<p>Just replace imgur.com or i.imgur.com with <code>{{domain}}</code>! You can setup automatic redirects using <a href="https://github.com/libredirect/libredirect">LibRedirect</a>.</p>
|
||||
</main>
|
||||
|
||||
{{> partials/footer }}
|
||||
|
|
Loading…
Reference in New Issue