Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

last modified timestamp #260

Open
aaronkvanmeerten opened this issue May 31, 2017 · 2 comments
Open

last modified timestamp #260

aaronkvanmeerten opened this issue May 31, 2017 · 2 comments

Comments

@aaronkvanmeerten
Copy link

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
Copy link
Collaborator

bytesnz commented Jun 1, 2017

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
Copy link
Owner

+1 @bytesnz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants