diff options
| author | jvoisin | 2019-02-23 13:30:23 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-23 13:30:23 +0100 |
| commit | 3d21f613d2ad1612b21745766253034854311557 (patch) | |
| tree | 2c4847b9af57163824d3e97322835d282b7a3406 | |
| parent | 1b0333fdd5175d6a45d1929218e0aac3db884139 (diff) | |
Document how to get rid of stale files
| -rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -56,6 +56,10 @@ systemctl restart nginx/apache/… | |||
| 56 | 56 | ||
| 57 | It should now be working. | 57 | It should now be working. |
| 58 | 58 | ||
| 59 | You should add `find /var/www/mat2-web/uploads/* -mtime +1 -exec rm {} \;` | ||
| 60 | in a crontab to remove files that people might have uploaded but never | ||
| 61 | downloaded. | ||
| 62 | |||
| 59 | # Threat model | 63 | # Threat model |
| 60 | 64 | ||
| 61 | - An attacker in possession of the very same file that a user wants to clean, | 65 | - An attacker in possession of the very same file that a user wants to clean, |
