From f31be1a725b3b80c510a67d3e93796b1d99c78ef Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 1 Dec 2025 13:50:02 +0200 Subject: [PATCH] Adapt to static-webserver v2.40.0 changes to the public directory Ref: - https://github.com/static-web-server/static-web-server/releases/tag/v2.40.0 - https://github.com/static-web-server/static-web-server/pull/567 - https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/4767 Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4768 Regression since a451f1fcb14465c85e52274f09b08b2b6bdc3046 --- .../templates/systemd/matrix-cactus-comments-client.service.j2 | 2 +- .../templates/systemd/matrix-static-files.service.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix-cactus-comments-client/templates/systemd/matrix-cactus-comments-client.service.j2 b/roles/custom/matrix-cactus-comments-client/templates/systemd/matrix-cactus-comments-client.service.j2 index 726c66c5b..995ce5d6f 100755 --- a/roles/custom/matrix-cactus-comments-client/templates/systemd/matrix-cactus-comments-client.service.j2 +++ b/roles/custom/matrix-cactus-comments-client/templates/systemd/matrix-cactus-comments-client.service.j2 @@ -29,7 +29,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ {% endif %} --env-file={{ matrix_cactus_comments_client_base_path }}/env \ --label-file={{ matrix_cactus_comments_client_base_path }}/labels \ - --mount type=bind,src={{ matrix_cactus_comments_client_public_path }},dst=/public,ro \ + --mount type=bind,src={{ matrix_cactus_comments_client_public_path }},dst=/var/public,ro \ {{ matrix_cactus_comments_client_container_image }} {% for network in matrix_cactus_comments_client_container_additional_networks %} diff --git a/roles/custom/matrix-static-files/templates/systemd/matrix-static-files.service.j2 b/roles/custom/matrix-static-files/templates/systemd/matrix-static-files.service.j2 index 01db2aaeb..8f93ef0e2 100755 --- a/roles/custom/matrix-static-files/templates/systemd/matrix-static-files.service.j2 +++ b/roles/custom/matrix-static-files/templates/systemd/matrix-static-files.service.j2 @@ -29,7 +29,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ {% endif %} --env-file={{ matrix_static_files_base_path }}/env \ --label-file={{ matrix_static_files_base_path }}/labels \ - --mount type=bind,src={{ matrix_static_files_public_path }},dst=/public,ro \ + --mount type=bind,src={{ matrix_static_files_public_path }},dst=/var/public,ro \ --mount type=bind,src={{ matrix_static_files_config_path }},dst=/config,ro \ {{ matrix_static_files_container_image }}