Merge pull request #1105 from SkynetLabs/expose-skynet-health-endpoint

expose /skynet/health endpoints
This commit is contained in:
Matthew Sevey 2021-08-24 13:31:38 -04:00 committed by GitHub
commit 907925e115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -375,6 +375,17 @@ server {
proxy_pass http://siad;
}
location /skynet/health {
include /etc/nginx/conf.d/include/cors;
proxy_cache skynet;
proxy_cache_key $request_uri; # use whole request uri (uri + args) as cache key
proxy_cache_valid any 1m; # cache any response for 1 minute
proxy_set_header User-Agent: Sia-Agent;
proxy_read_timeout 5m; # extend the read timeout to 5 minutes
proxy_pass http://siad;
}
location /skynet/resolve {
include /etc/nginx/conf.d/include/cors;