mirror of
https://github.com/jakejarvis/npqueue.git
synced 2025-04-26 02:15:23 -04:00
parent
016242bcf3
commit
884f3183be
25
main.go
25
main.go
@ -13,6 +13,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gin-contrib/secure"
|
||||
"github.com/gin-gonic/contrib/static"
|
||||
"github.com/gin-gonic/gin"
|
||||
_ "github.com/heroku/x/hmetrics/onload"
|
||||
@ -205,18 +206,18 @@ func ListHandler(c *gin.Context) {
|
||||
func main() {
|
||||
port := ":" + os.Getenv("PORT")
|
||||
router := gin.Default()
|
||||
/*
|
||||
router.Use(secure.New(secure.Config{
|
||||
SSLRedirect: true,
|
||||
SSLHost: "np.pogge.rs",
|
||||
STSSeconds: 315360000,
|
||||
STSIncludeSubdomains: false,
|
||||
FrameDeny: true,
|
||||
ContentTypeNosniff: true,
|
||||
BrowserXssFilter: true,
|
||||
SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
|
||||
}))
|
||||
*/
|
||||
|
||||
router.Use(secure.New(secure.Config{
|
||||
SSLRedirect: true,
|
||||
SSLHost: "np.pogge.rs",
|
||||
STSSeconds: 315360000,
|
||||
STSIncludeSubdomains: false,
|
||||
FrameDeny: true,
|
||||
ContentTypeNosniff: true,
|
||||
BrowserXssFilter: true,
|
||||
SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
|
||||
}))
|
||||
|
||||
// Serve frontend static files
|
||||
router.Use(static.Serve("/", static.LocalFile("./public", true)))
|
||||
|
||||
|
5
renovate.json
Normal file
5
renovate.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user