1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-14 11:58:04 +00:00

Set port to 8080 instead of 80

This commit is contained in:
TwinProduction 2019-10-05 22:20:36 -04:00
parent c4e02e3a75
commit 40eb35aab2
2 changed files with 8 additions and 7 deletions

View file

@ -11,6 +11,6 @@ COPY --from=builder /app/gatus .
COPY --from=builder /app/config.yaml .
COPY --from=builder /app/static static/
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENV PORT 80
EXPOSE 80
ENTRYPOINT ["/gatus"]
ENV PORT 8080
EXPOSE 8080
ENTRYPOINT ["/gatus"]

View file

@ -2,10 +2,11 @@ package main
import (
"encoding/json"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/watchdog"
"log"
"net/http"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/watchdog"
)
func main() {
@ -13,8 +14,8 @@ func main() {
http.HandleFunc("/api/v1/results", serviceResultsHandler)
http.HandleFunc("/health", healthHandler)
http.Handle("/", http.FileServer(http.Dir("./static")))
log.Println("[main][main] Listening on port 80")
log.Fatal(http.ListenAndServe(":80", nil))
log.Println("[main][main] Listening on port 8080")
log.Fatal(http.ListenAndServe(":8080", nil))
}
func serviceResultsHandler(writer http.ResponseWriter, request *http.Request) {