synchronize

This commit is contained in:
root 2021-06-17 22:11:31 -05:00
parent 507e1bf09e
commit 4a7cd02555
4 changed files with 3 additions and 2 deletions

0
README.md Normal file → Executable file

@ -2,7 +2,7 @@ module.exports = {
"apps": [
{
"script": "qonq.js",
"uid": "file-server",
"uid": "qonq",
"log_file": "qonq.log",
"env": {
"NODE_ENV": "production",

0
files/.gitkeep Normal file → Executable file

3
qonq.js Normal file → Executable file

@ -21,7 +21,8 @@ app.post("/upload", (req, res, next) => {
if (req.headers.authentication != AUTH_TOKEN) return res.status(403).send("Unauthorized");
var form = new formidable.IncomingForm({
maxFileSize: 2**30, // 1 GiB
maxFields: 1
maxFields: 1,
uploadDir: "files/tmp"
});
form.parse(req, function(err, fields, files) {
if (err) return next(err);