From 25fd697d5fc533eae682db651bc81463518d6ef8 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 1 Dec 2021 16:23:56 +0100 Subject: [PATCH] Configure routes --- docker/nginx/conf.d/server/server.api | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 20fcff1e..7a4b5895 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -90,15 +90,22 @@ location /health-check { proxy_pass http://10.10.10.60:3100; # hardcoded ip because health-check waits for nginx } -location /block/ { - proxy_method POST; - proxy_http_version 1.1; +location /abuse/ { proxy_pass http://10.10.10.102:4000/; - client_max_body_size 10M; } -location /abuse { - proxy_pass https://vg2e911ounsg4d87jppvj5mkcg3gvnceh28aobjl2puonuu24696uno.siasky.dev/; +location /report-abuse { + # include /etc/nginx/conf.d/include/cors; + + # set $skylink "vg2e911ounsg4d87jppvj5mkcg3gvnceh28aobjl2puonuu24696uno"; + # set $path $uri; + + # include /etc/nginx/conf.d/include/location-skylink; + + # proxy_intercept_errors on; + # error_page 400 404 490 500 502 503 504 =200 @fallback2; + # TODO: wanted to use proxy pass but ran into error here + return https://0404guluqu38oaqapku91ed11kbhkge55smh9lhjukmlrj37lfpm8no.siasky.net } location /hns {