From b3798b692a872778bf687f5d1eefa9afe3330ac3 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 20 Dec 2021 12:48:52 +0200 Subject: [PATCH] Fix the port of malware-scanner. --- docker/nginx/conf.d/include/track-download | 2 +- docker/nginx/conf.d/include/track-upload | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/conf.d/include/track-download b/docker/nginx/conf.d/include/track-download index 75bea802..e91e89fb 100644 --- a/docker/nginx/conf.d/include/track-download +++ b/docker/nginx/conf.d/include/track-download @@ -26,7 +26,7 @@ log_by_lua_block { local httpc = require("resty.http").new() -- 10.10.10.101 points to malware-scanner service (alias not available when using resty-http) - local res, err = httpc:request_uri("http://10.10.10.101:3000/scan/" .. skylink, { + local res, err = httpc:request_uri("http://10.10.10.101:4000/scan/" .. skylink, { method = "POST", headers = { ["Cookie"] = "skynet-jwt=" .. jwt }, }) diff --git a/docker/nginx/conf.d/include/track-upload b/docker/nginx/conf.d/include/track-upload index 74be53fe..36505834 100644 --- a/docker/nginx/conf.d/include/track-upload +++ b/docker/nginx/conf.d/include/track-upload @@ -25,7 +25,7 @@ log_by_lua_block { local httpc = require("resty.http").new() -- 10.10.10.101 points to malware-scanner service (alias not available when using resty-http) - local res, err = httpc:request_uri("http://10.10.10.101:3000/scan/" .. skylink, { + local res, err = httpc:request_uri("http://10.10.10.101:4000/scan/" .. skylink, { method = "POST", headers = { ["Cookie"] = "skynet-jwt=" .. jwt }, })