mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-16 10:20:00 +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/config.yaml .
|
||||||
COPY --from=builder /app/static static/
|
COPY --from=builder /app/static static/
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
ENV PORT 80
|
ENV PORT 8080
|
||||||
EXPOSE 80
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/gatus"]
|
ENTRYPOINT ["/gatus"]
|
||||||
|
9
main.go
9
main.go
@ -2,10 +2,11 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/TwinProduction/gatus/core"
|
|
||||||
"github.com/TwinProduction/gatus/watchdog"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"github.com/TwinProduction/gatus/core"
|
||||||
|
"github.com/TwinProduction/gatus/watchdog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -13,8 +14,8 @@ func main() {
|
|||||||
http.HandleFunc("/api/v1/results", serviceResultsHandler)
|
http.HandleFunc("/api/v1/results", serviceResultsHandler)
|
||||||
http.HandleFunc("/health", healthHandler)
|
http.HandleFunc("/health", healthHandler)
|
||||||
http.Handle("/", http.FileServer(http.Dir("./static")))
|
http.Handle("/", http.FileServer(http.Dir("./static")))
|
||||||
log.Println("[main][main] Listening on port 80")
|
log.Println("[main][main] Listening on port 8080")
|
||||||
log.Fatal(http.ListenAndServe(":80", nil))
|
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
func serviceResultsHandler(writer http.ResponseWriter, request *http.Request) {
|
func serviceResultsHandler(writer http.ResponseWriter, request *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user