Merge pull request #751 from SkynetLabs/skynet-metadata-endpoint

/skynet/metadata endpoint
This commit is contained in:
Ivaylo Novakov 2021-05-11 11:33:53 +02:00 committed by GitHub
commit 020eab2e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -399,6 +399,13 @@ server {
proxy_pass http://siad; proxy_pass http://siad;
} }
location /skynet/metadata {
include /etc/nginx/conf.d/include/cors;
proxy_set_header User-Agent: Sia-Agent;
proxy_pass http://siad;
}
location ~ "^/(([a-zA-Z0-9-_]{46}|[a-z0-9]{55})(/.*)?)$" { location ~ "^/(([a-zA-Z0-9-_]{46}|[a-z0-9]{55})(/.*)?)$" {
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;
include /etc/nginx/conf.d/include/proxy-buffer; include /etc/nginx/conf.d/include/proxy-buffer;