Replace Redirector with LibRedirect

This commit is contained in:
video-prize-ranch 2022-03-21 22:01:16 -04:00
parent d96e0768bc
commit ff8017d9b1
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
2 changed files with 1 additions and 13 deletions

View File

@ -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(),
})
}

View File

@ -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 }}