aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http_file_share.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua
index 60b26ff3..d082bee7 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -134,12 +134,16 @@ end
function get_authz(slot, uploader, filename, filesize, filetype)
return jwt.sign(secret, {
+ -- token properties
sub = uploader;
+ exp = os.time()+300;
+
+ -- slot properties
+ slot = slot;
+ -- file properties
filename = filename;
filesize = filesize;
filetype = filetype;
- slot = slot;
- exp = os.time()+300;
});
end