From ff8017d9b1b89432952cfb6097e515f0a80f6170 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Mon, 21 Mar 2022 22:01:16 -0400 Subject: [PATCH] Replace Redirector with LibRedirect --- pages/frontpage.go | 1 - views/frontpage.hbs | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/pages/frontpage.go b/pages/frontpage.go index b2d97a4..c964a03 100644 --- a/pages/frontpage.go +++ b/pages/frontpage.go @@ -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(), }) } \ No newline at end of file diff --git a/views/frontpage.hbs b/views/frontpage.hbs index 39a0752..3430550 100644 --- a/views/frontpage.hbs +++ b/views/frontpage.hbs @@ -39,18 +39,7 @@

Usage

-

Just replace imgur.com with the domain of this instance! You can setup automatic redirects using Redirector.

- -

Redirector configuration

- - - +

Just replace imgur.com or i.imgur.com with {{domain}}! You can setup automatic redirects using LibRedirect.

{{> partials/footer }}