From 25595a3c65c156c9ae8f296b017f79d9ea0e5866 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 9 Jan 2024 15:34:00 +0200 Subject: [PATCH 1/2] Update Netlify _redirects section --- docs/configuring-well-known.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/configuring-well-known.md b/docs/configuring-well-known.md index f52e4f612..ec9a5c5b0 100644 --- a/docs/configuring-well-known.md +++ b/docs/configuring-well-known.md @@ -170,10 +170,9 @@ backend matrix-backend rsprep ^Location:\ (http|https)://matrix.example.com\/(.*) Location:\ \1://matrix.example.com/.well-known/matrix/\2 if response-is-redirect ``` -**For Netlify**, it would be something like this: +**For Netlify**, configure a [redirect](https://docs.netlify.com/routing/redirects/) using a `_redirects` file in the [publish directory](https://docs.netlify.com/configure-builds/overview/#definitions) with contents like this: ``` -# In the _redirects file in the website's root /.well-known/matrix/* https://matrix.example.com/.well-known/matrix/:splat 200! ``` From 7ad5321f54540de79fd97a44f4aea0eb69fc563e Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 9 Jan 2024 15:37:51 +0200 Subject: [PATCH 2/2] Make sure ma1sd uninstallation tasks also run on setup-all --- roles/custom/matrix-ma1sd/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/custom/matrix-ma1sd/tasks/main.yml b/roles/custom/matrix-ma1sd/tasks/main.yml index a9c4ec8b0..22e59a06b 100644 --- a/roles/custom/matrix-ma1sd/tasks/main.yml +++ b/roles/custom/matrix-ma1sd/tasks/main.yml @@ -13,6 +13,7 @@ ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" - tags: + - setup-all - setup-ma1sd block: - when: not matrix_ma1sd_enabled | bool