cert renew

This commit is contained in:
kaedwen committed 2023-07-18 19:43:19 +02:00
1 parent 3a6fae5bf2
commit 18a99b3715
40 files changed
+122 -8296

No files matched your search

-6
View File
@@ -39,12 +39,6 @@ func (s staticDiskSource) Open(p string) (common.StaticSourceFile, error) {
}
func SetupHandler(e *gin.Engine, cfg *common.Config) {
if cfg.Ring.JinglePath != nil {
e.GET(cfg.Ring.JingleName, func(c *gin.Context) {
c.File(path.Join(*cfg.Ring.JinglePath, cfg.Ring.JingleName))
})
}
if cfg.Http.StaticPath != nil {
handler := common.NewStaticHandler(staticDiskSource{*cfg.Http.StaticPath}, "index.html")
e.NoRoute(func(c *gin.Context) {
-6
View File
@@ -42,12 +42,6 @@ func (s staticSource) Open(p string) (common.StaticSourceFile, error) {
}
func SetupHandler(e *gin.Engine, cfg *common.Config) {
if cfg.Ring.JinglePath != nil {
e.GET(cfg.Ring.JingleName, func(c *gin.Context) {
c.File(path.Join(*cfg.Ring.JinglePath, cfg.Ring.JingleName))
})
}
handler := common.NewStaticHandler(staticSource{"dist"}, "index.html")
e.NoRoute(func(c *gin.Context) {
encoding := c.Request.Header.Get("Accept-Encoding")