Browse Source

let's encrypt update

master
Levi Olson 4 years ago
committed by GitHub
parent
commit
9a54ce6319
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      main.go

+ 4
- 1
main.go View File

@ -28,7 +28,10 @@ func main() {
c.File("assets/favicon.ico")
})
router.Static("/.well-known", "public/.well-known")
router.GET("/.well-known/acme-challenge/:file", func(c *gin.Context) {
fullpath := "public/.well-known/acme-challenge/" + c.Param("file")
c.File(fullpath)
})
router.GET("/ping", func(c *gin.Context) {
c.String(http.StatusOK, "pong")

Loading…
Cancel
Save