Removed HTTPS
This commit is contained in:
parent
fb73dba780
commit
a3ed7694c0
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user