Merge pull request #1493 from SkynetLabs/abuse-report-endpoints

expose /abuse and /abuse/report endpoints
This commit is contained in:
Christopher Schinnerl 2021-12-21 15:13:38 +00:00 committed by GitHub
commit 2a37d5ecb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -105,15 +105,20 @@ location /health-check {
proxy_pass http://10.10.10.60:3100; # hardcoded ip because health-check waits for nginx proxy_pass http://10.10.10.60:3100; # hardcoded ip because health-check waits for nginx
} }
location /abuse/ { location /abuse {
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;
proxy_pass http://10.10.10.110:4000/; set $skylink "0404guluqu38oaqapku91ed11kbhkge55smh9lhjukmlrj37lfpm8no";
set $path $uri;
include /etc/nginx/conf.d/include/location-skylink;
} }
location /report-abuse { location /abuse/report {
# TODO: do a proxy_pass include /etc/nginx/conf.d/include/cors;
return https://0404guluqu38oaqapku91ed11kbhkge55smh9lhjukmlrj37lfpm8no.siasky.net;
# 10.10.10.110 points to blocker service
proxy_pass http://10.10.10.110:4000/powblock;
} }
location /hns { location /hns {