X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/d8c46ff78ae2707a580f7b0446349122297b434f..ae78095a57cc22931643b2fbd60d28ed29428fa2:/README.md diff --git a/README.md b/README.md index 961f10e..51185e2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Uguu -uguu is a simple file uploading and sharing platform. +Uguu is a simple temporary file uploading and sharing platform where files get deleted after 24 hours. ## Features @@ -47,10 +47,6 @@ Run the following commands to do so. ```bash cd uguu/ make -# alternatively -make MODULES="" # compile no submodules; exclude the default php backend module -make MODULES="php" # compile the php submodule -# make install ``` OR @@ -73,6 +69,21 @@ increase POST size limits in `php.ini` and webserver configuration. For PHP, modify `upload_max_filesize` and `post_max_size` values. The configuration option for nginx webserver is `client_max_body_size`. +Edit checkdb.sh and checkfiles.sh to the proper paths: +```bash +sqlite3 /path/to/db/uguu.sq3 "DELETE FROM files WHERE date <= strftime('%s', datetime('now', '-1 day'));" +``` +```bash +find /path/to/files/ -mmin +1440 -exec rm -f {} \; +``` +Then add them to your crontab: +```bash +0,30 * * * * bash /path/to/checkfiles.sh +0,30 * * * * bash /path/to/checkdb.sh +``` + +These scripts check if DB entries and files are older then 24 hours and if they are deletes them. + Example nginx configs can be found in confs/. ## Using SQLite as DB engine @@ -110,7 +121,7 @@ configuration file. ## Getting help -Hit me up at twitter or email me. +Hit me up at [@nekunekus](https://twitter.com/nekunekus) or email me at neku@pomf.se ## Credits