Add Skynet portal blocklist endpoint

This commit is contained in:
PJ 2022-03-03 13:18:58 +01:00
parent a8dda639da
commit baed1bbb2c
No known key found for this signature in database
GPG Key ID: F345964979FA8971
1 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,14 @@ location /skynet/blocklist {
proxy_pass http://sia:9980/skynet/blocklist;
}
location /skynet/portal/blocklist {
include /etc/nginx/conf.d/include/cors;
proxy_cache skynet;
proxy_cache_valid any 15m; # cache portal blocklist for 15 minutes
proxy_pass http://blocker:4000/blocklist;
}
location /skynet/portals {
include /etc/nginx/conf.d/include/cors;