Browse Source

remove autotls since its now running with nginx and let's encrypt

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

+ 2
- 6
main.go View File

@ -9,7 +9,6 @@ import (
"github.com/gin-contrib/cache"
"github.com/gin-contrib/cache/persistence"
"github.com/gin-gonic/autotls"
"github.com/gin-gonic/gin"
)
@ -57,11 +56,8 @@ func main() {
c.JSON(http.StatusOK, gin.H{"weather": response})
}))
if os.Getenv("GIN_MODE") == "release" {
log.Fatal(autotls.Run(router, "weather.l3vi.co"))
} else {
log.Fatal(router.Run(":3010"))
}
log.Fatal(router.Run(":3010"))
}
func currentWeather(lat, long float64, apikey string) (ForecastResponse, error) {

Loading…
Cancel
Save