Clone from https://github.com/haiwen/seafile/wiki