Skip to content

Commit

Permalink
feat: use 8080 for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmishra committed Sep 6, 2024
1 parent 666821c commit 3689de7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
initialRetryDelay = 5 * time.Second
maxRetryDelay = 5 * time.Minute
cacheTTL = 3600 // 1 hour in seconds
httpPort = 8080
)

var (
Expand Down Expand Up @@ -58,8 +59,9 @@ func main() {

func startHTTPServer() {
http.Handle("/", http.FileServer(http.Dir("docs")))
log.Printf("Starting HTTP server on port 80")
err := http.ListenAndServe(":80", nil)

log.Printf("Starting HTTP server on port %d", httpPort)
err := http.ListenAndServe(fmt.Sprintf(":%d", httpPort), nil)
if err != nil {
log.Fatalf("Failed to start HTTP server: %s\n", err.Error())
}
Expand Down

0 comments on commit 3689de7

Please sign in to comment.