Removed HTTPS

This commit is contained in:
Eduard Urbach 2024-02-02 20:58:12 +01:00
parent fb73dba780
commit a3ed7694c0
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -12,7 +12,6 @@ import (
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/pages" "github.com/animenotifier/notify.moe/pages"
"github.com/animenotifier/notify.moe/server/auth" "github.com/animenotifier/notify.moe/server/auth"
"github.com/animenotifier/notify.moe/server/https"
"github.com/animenotifier/notify.moe/server/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
@ -30,9 +29,6 @@ func New() *aero.Application {
app.ContentSecurityPolicy.Set("connect-src", "https: wss: data:") app.ContentSecurityPolicy.Set("connect-src", "https: wss: data:")
app.ContentSecurityPolicy.Set("font-src", "https: data:") app.ContentSecurityPolicy.Set("font-src", "https: data:")
// Security
https.Configure(app)
// Assets // Assets
assets.Configure(app) assets.Configure(app)
@ -48,7 +44,6 @@ func New() *aero.Application {
} else { } else {
app.Use( app.Use(
middleware.Recover, middleware.Recover,
middleware.HTTPSRedirect,
middleware.OpenGraph, middleware.OpenGraph,
middleware.Log, middleware.Log,
middleware.Session, middleware.Session,