mirror of
https://github.com/jakejarvis/npqueue.git
synced 2025-04-26 06:55:21 -04:00
parent
016242bcf3
commit
884f3183be
5
main.go
5
main.go
@ -13,6 +13,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/gin-contrib/secure"
|
||||||
"github.com/gin-gonic/contrib/static"
|
"github.com/gin-gonic/contrib/static"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
_ "github.com/heroku/x/hmetrics/onload"
|
_ "github.com/heroku/x/hmetrics/onload"
|
||||||
@ -205,7 +206,7 @@ func ListHandler(c *gin.Context) {
|
|||||||
func main() {
|
func main() {
|
||||||
port := ":" + os.Getenv("PORT")
|
port := ":" + os.Getenv("PORT")
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
/*
|
|
||||||
router.Use(secure.New(secure.Config{
|
router.Use(secure.New(secure.Config{
|
||||||
SSLRedirect: true,
|
SSLRedirect: true,
|
||||||
SSLHost: "np.pogge.rs",
|
SSLHost: "np.pogge.rs",
|
||||||
@ -216,7 +217,7 @@ func main() {
|
|||||||
BrowserXssFilter: true,
|
BrowserXssFilter: true,
|
||||||
SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
|
SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
|
||||||
}))
|
}))
|
||||||
*/
|
|
||||||
// Serve frontend static files
|
// Serve frontend static files
|
||||||
router.Use(static.Serve("/", static.LocalFile("./public", true)))
|
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