Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>pull/4127/head
| @@ -1,3 +1,12 @@ | |||||
| <!-- | |||||
| SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | |||||
| SPDX-FileCopyrightText: 2023 - 2024 Slavi Pantaleev | |||||
| SPDX-FileCopyrightText: 2023 MDAD project contributors | |||||
| SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara | |||||
| SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| --> | |||||
| # Storing Matrix media files using matrix-media-repo (optional) | # Storing Matrix media files using matrix-media-repo (optional) | ||||
| The playbook can install and configure [matrix-media-repo](https://docs.t2bot.io/matrix-media-repo/) (often abbreviated "MMR") for you. | The playbook can install and configure [matrix-media-repo](https://docs.t2bot.io/matrix-media-repo/) (often abbreviated "MMR") for you. | ||||
| @@ -1,3 +1,11 @@ | |||||
| # SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | |||||
| # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev | |||||
| # SPDX-FileCopyrightText: 2023 MDAD project contributors | |||||
| # SPDX-FileCopyrightText: 2023 Samuel Meenzen | |||||
| # SPDX-FileCopyrightText: 2024 Suguru Hirahara | |||||
| # | |||||
| # SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| --- | --- | ||||
| # matrix-media-repo is a highly customizable multi-domain media repository for Matrix. | # matrix-media-repo is a highly customizable multi-domain media repository for Matrix. | ||||
| # Intended for medium to large environments consisting of several homeservers, this | # Intended for medium to large environments consisting of several homeservers, this | ||||
| @@ -1,3 +1,8 @@ | |||||
| # SPDX-FileCopyrightText: 2023 Michael Hollister | |||||
| # SPDX-FileCopyrightText: 2023 Slavi Pantaleev | |||||
| # | |||||
| # SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| --- | --- | ||||
| - tags: | - tags: | ||||
| @@ -1,3 +1,10 @@ | |||||
| # SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | |||||
| # SPDX-FileCopyrightText: 2024 Daniel A. Maierhofer | |||||
| # SPDX-FileCopyrightText: 2024 David Mehren | |||||
| # SPDX-FileCopyrightText: 2024 Slavi Pantaleev | |||||
| # | |||||
| # SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| --- | --- | ||||
| - name: Ensure media-repo paths exist | - name: Ensure media-repo paths exist | ||||
| @@ -1,3 +1,7 @@ | |||||
| # SPDX-FileCopyrightText: 2023 Michael Hollister | |||||
| # | |||||
| # SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| --- | --- | ||||
| - name: Check existence of media-repo service | - name: Check existence of media-repo service | ||||
| @@ -1,3 +1,8 @@ | |||||
| # SPDX-FileCopyrightText: 2023 Michael Hollister | |||||
| # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev | |||||
| # | |||||
| # SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| --- | --- | ||||
| - name: Fail if required matrix-media-repo settings not defined | - name: Fail if required matrix-media-repo settings not defined | ||||
| @@ -0,0 +1,3 @@ | |||||
| SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | |||||
| SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| @@ -1 +1,7 @@ | |||||
| {# | |||||
| SPDX-FileCopyrightText: 2023 Michael Hollister | |||||
| SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| #} | |||||
| REPO_CONFIG=/config/media-repo.yaml | REPO_CONFIG=/config/media-repo.yaml | ||||
| @@ -1,3 +1,10 @@ | |||||
| {# | |||||
| SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | |||||
| SPDX-FileCopyrightText: 2024 Slavi Pantaleev | |||||
| SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| #} | |||||
| {% if matrix_media_repo_container_labels_traefik_enabled %} | {% if matrix_media_repo_container_labels_traefik_enabled %} | ||||
| traefik.enable=true | traefik.enable=true | ||||
| @@ -1,3 +1,10 @@ | |||||
| {# | |||||
| SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | |||||
| SPDX-FileCopyrightText: 2024 Suguru Hirahara | |||||
| SPDX-License-Identifier: AGPL-3.0-or-later | |||||
| #} | |||||
| # General repo configuration | # General repo configuration | ||||
| repo: | repo: | ||||
| bindAddress: {{ matrix_media_repo_bind_address | to_json }} | bindAddress: {{ matrix_media_repo_bind_address | to_json }} | ||||
| @@ -0,0 +1,4 @@ | |||||
| SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev | |||||
| SPDX-FileCopyrightText: 2023 Michael Hollister | |||||
| SPDX-License-Identifier: AGPL-3.0-or-later | |||||