traefik/docs/configuration/ping.md

1.1 KiB

Ping Definition

# Ping definition
[ping]
  # Name of the related entry point
  #
  # Optional
  # Default: "traefik"
  #
  entryPoint = "traefik"
Path Method Description
/ping GET, HEAD A simple endpoint to check for Træfik process liveness. Return a code 200 with the content: OK

!!! warning Even if you have authentication configured on entry point, the /ping path of the api is excluded from authentication.

Example

curl -sv "http://localhost:8080/ping"
*   Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> GET /ping HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 25 Aug 2016 01:35:36 GMT
< Content-Length: 2
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact
OK