From f6f3863736ce44bf6297e070995caca430e21ebf Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 2 Sep 2021 10:16:41 +0200 Subject: [PATCH] fix tus upload limits not set --- docker/nginx/conf.d/server/server.api | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 0003e703..50c0b0d5 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -173,6 +173,8 @@ location /skynet/tus { -- this block runs only when accounts are enabled if os.getenv("ACCOUNTS_ENABLED") ~= "true" then return end + local httpc = require("resty.http").new() + -- fetch account limits and set max upload size accordingly local res, err = httpc:request_uri("http://10.10.10.70:3000/user/limits", { headers = { ["Cookie"] = "skynet-jwt=" .. ngx.var.skynet_jwt }