JohnMcLear / draw

A real time collaborative drawing tool using nodejs, socket.io & paper.js
Apache License 2.0
482 stars 158 forks source link

last modified timestamp #260

Open aaronkvanmeerten opened 7 years ago

aaronkvanmeerten commented 7 years ago

Hey folks,

Awesome project! We were thinking of deploying a copy on meet.jit.si , but since this is a public service we need to be able to clean up every once in a while. For etherpad we do that for all pads older than some number of hours and we were wondering if we could do the same for draw.

Would it be possible to add a "last modified" timestamp somewhere in the json so that we can use this when cleaning up old pads?

Thanks a bunch!

bytesnz commented 7 years ago

I added functionality to my fork of draw, just haven't moved it into this repo. https://github.com/bytesnz/draw/blob/master/server.js#L56 It allows you to add a length of time to remove the unused rooms after by either giving it as the removeUnused setting in the settings.json file or specify it when starting the program.

...
    "removeUnused": "2hr",
...

or $ node server.js --removeUnused 2hr

JohnMcLear commented 6 years ago

+1 @bytesnz