1
mirror of https://github.com/jakejarvis/npqueue.git synced 2025-04-25 22:45:22 -04:00

Configure Renovate (#4)

* Add renovate.json
This commit is contained in:
renovate[bot] 2019-09-11 12:15:05 -04:00 committed by Jake Jarvis
parent 016242bcf3
commit 884f3183be
2 changed files with 18 additions and 12 deletions

25
main.go
View File

@ -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
View File

@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}