X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/1f71d46c8283543194a016458c20b4fc73ec3561..8c54a1f3497253b64480417914e871713536e185:/README.md diff --git a/README.md b/README.md index f93274b..0a59c60 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Uguu +# What is Uguu? -Uguu is a simple temporary file uploading and sharing platform where files get deleted after 24 hours. +Uguu is a simple temporary file uploading and sharing platform where files get deleted after X amount of time. ## Features @@ -116,15 +116,15 @@ define('UGUU_DB_PASS', '[stuff]'); ---> define('UGUU_DB_PASS', null); *NOTE: The directory where the SQLite database is stored, must be writable by the web server user* -### Apache +## Nginx/Apache -If you are running Apache and want to compress your output when serving files, -add to your `.htaccess` file: +I won't cover settings everything up, however do NOT allow PHP scripts to be executed on your subdomain serving the files or someone will just upload a PHP shell and PwN you. - AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/x-javascript application/json - -Remember to enable `deflate_module` and `filter_module` modules in your Apache -configuration file. +## API +To upload using curl or make a tool you can post using: +``` +curl -i -F files[]=@yourfile.jpeg https://uguu.se/upload.php (JSON Response) +``` ## Getting help