mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
Set port to 8080 instead of 80
This commit is contained in:
parent
c4e02e3a75
commit
40eb35aab2
@ -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
|
||||
ENV PORT 8080
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/gatus"]
|
9
main.go
9
main.go
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user