summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authordoobry2019-03-01 17:20:45 +0100
committerdoobry2019-03-01 17:20:45 +0100
commit95fd501a963f633e8b63960220935a1dbcf595f3 (patch)
treecd639dc42733a12d75f8df4f16994b78e1245b37 /README.md
parent3d21f613d2ad1612b21745766253034854311557 (diff)
Mention Ansible Role in README.md
* Improve garbage collector cronjob to limit find on files (ignore directories).
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3d92851..35fbb2a 100644
--- a/README.md
+++ b/README.md
@@ -56,10 +56,21 @@ systemctl restart nginx/apache/…
56 56
57It should now be working. 57It should now be working.
58 58
59You should add `find /var/www/mat2-web/uploads/* -mtime +1 -exec rm {} \;` 59You should add `find /var/www/mat2-web/uploads/ -type f -mtime +1 -exec rm {} \;`
60in a crontab to remove files that people might have uploaded but never 60in a crontab to remove files that people might have uploaded but never
61downloaded. 61downloaded.
62 62
63# Deploy via Ansible
64
65If you happen to use Ansible, there's an Ansible role to deploy mat2-web on
66Debian: [ansible-role-mat2-web](https://github.com/systemli/ansible-role-mat2-web)
67
68The role install mat2-web as uWSGI service (run as dedicated system user),
69installs bubblewrap for mat2 sandboxing and creates a garbage collector
70cronjob to remove leftover files . Besides, it supports to create a dm-crypt
71volume with random key for the uploads folder in order to protect the uploaded
72files.
73
63# Threat model 74# Threat model
64 75
65- An attacker in possession of the very same file that a user wants to clean, 76- An attacker in possession of the very same file that a user wants to clean,