ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit cc064643e303b122e56076f22aa7826759a83384
parent b051cb8eed1688b13be6df218968ad2bc98ebc87
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Wed, 21 Jul 2021 11:14:03 +0300

matrix: Reduce remote media retention to one day

Diffstat:
ansible/inventory/host_vars/productionmatrix/cron.yml | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ansible/inventory/host_vars/productionmatrix/cron.yml b/ansible/inventory/host_vars/productionmatrix/cron.yml @@ -5,6 +5,5 @@ cron__host_jobs: user: "root" jobs: - name: "Purge old Synapse media" - job: "curl --header 'Authorization: Bearer {{ synapse__admin_auth_token }}' -X POST localhost:8008/_synapse/admin/v1/purge_media_cache?before_ts=`date --date='-1 month' +\\%s\\%3N`" + job: "curl --header 'Authorization: Bearer {{ synapse__admin_auth_token }}' -X POST localhost:8008/_synapse/admin/v1/purge_media_cache?before_ts=`date --date='-1 days' +\\%s\\%3N`" special_time: "daily" -