Add ping route for http listener

This commit is contained in:
Lawrence, Rendall
2021-12-21 16:36:38 +03:00
parent 4dbbb4ad83
commit fa4c7c49ad
2 changed files with 19 additions and 0 deletions

View File

@@ -63,6 +63,12 @@ mochi:
- "/scrape"
# - "/scrape.php"
# An array of routes to listen ping requests.
# Used just to ensure if server is operational. Returns nothing,
# just HTTP 200 without body. Listens both GET and HEAD HTTP methods.
ping_routes:
- "/ping"
# When enabled, the IP address used to connect to the tracker will not
# override the value clients advertise as their IP address.
allow_ip_spoofing: false