mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-10-21 19:58:54 +02:00
Add matrix-steam-bridge (#4572)
* Documentation update * New files for role * Update existing files to add support for matrix-steam-bridge * Typos and misc fixes * Change docker tag to latest until version # is stable * Align bridge permissions * Correct user localpart * Remove trailing + * Fix syslog identifier * Actually enable the service correctly * One more typo fix * Third time's the charm * Fix config file paths * Fix config after bridge repo changes * Add default appservice public address - set public_media to false by default for testing * Fix default config for steamkit-service path * Fix bluesky reference * Fix default container path * Fix appservice connection to http for internal, change port to standard 8080 * Fix appservice port * Enable public_media by default, add labels * Enable public_media by default, add labels * Allow bridge to update its own config and generate public_media signing key * Add deterministic public_media_signing_key, expose portal cleanup * Change default public_media path to omit `matrix.` from the path as it has been found that URLs generated by the bridge will only match {{ matrix_domain }} * Remove domain re-write * Revert "Change default public_media path to omit `matrix.` from the path as it has been found that URLs generated by the bridge will only match {{ matrix_domain }}" This reverts commit5f399effb9
. * Fix TLS label if playbook TLS is disabled * Match default bridge TLS config * Related to3daf14d69
and60ab08014
which enable async media by default for mautrix-go bridges * Adjust matrix-bridge-steam files to add new line at the end of files * Pin matrix-bridge-steam (latest -> 1.0.3) --------- Co-authored-by: Slavi Pantaleev <slavi@devture.com>
This commit is contained in:
78
roles/custom/matrix-bridge-steam/templates/labels.j2
Normal file
78
roles/custom/matrix-bridge-steam/templates/labels.j2
Normal file
@@ -0,0 +1,78 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2025 MDAD project contributors
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% if matrix_steam_bridge_container_labels_traefik_enabled %}
|
||||
traefik.enable=true
|
||||
|
||||
{% if matrix_steam_bridge_container_labels_traefik_docker_network %}
|
||||
traefik.docker.network={{ matrix_steam_bridge_container_labels_traefik_docker_network }}
|
||||
{% endif %}
|
||||
|
||||
traefik.http.services.matrix-steam-bridge.loadbalancer.server.port={{ matrix_steam_bridge_appservice_port }}
|
||||
traefik.http.services.matrix-steam-bridge-metrics.loadbalancer.server.port=8000
|
||||
|
||||
{% if matrix_steam_bridge_container_labels_metrics_enabled %}
|
||||
############################################################
|
||||
# #
|
||||
# Metrics #
|
||||
# #
|
||||
############################################################
|
||||
|
||||
{% if matrix_steam_bridge_container_labels_metrics_middleware_basic_auth_enabled %}
|
||||
traefik.http.middlewares.matrix-steam-bridge-metrics-basic-auth.basicauth.users={{ matrix_steam_bridge_container_labels_metrics_middleware_basic_auth_users }}
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.middlewares=matrix-steam-bridge-metrics-basic-auth
|
||||
{% endif %}
|
||||
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.rule={{ matrix_steam_bridge_container_labels_metrics_traefik_rule }}
|
||||
|
||||
{% if matrix_steam_bridge_container_labels_metrics_traefik_priority | int > 0 %}
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.priority={{ matrix_steam_bridge_container_labels_metrics_traefik_priority }}
|
||||
{% endif %}
|
||||
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.service=matrix-steam-bridge-metrics
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.entrypoints={{ matrix_steam_bridge_container_labels_metrics_traefik_entrypoints }}
|
||||
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.tls={{ matrix_steam_bridge_container_labels_metrics_traefik_tls | to_json }}
|
||||
{% if matrix_steam_bridge_container_labels_metrics_traefik_tls %}
|
||||
traefik.http.routers.matrix-steam-bridge-metrics.tls.certResolver={{ matrix_steam_bridge_container_labels_metrics_traefik_tls_certResolver }}
|
||||
{% endif %}
|
||||
|
||||
############################################################
|
||||
# #
|
||||
# /Metrics #
|
||||
# #
|
||||
############################################################
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if matrix_steam_bridge_public_media_enabled %}
|
||||
############################################################
|
||||
# #
|
||||
# Public Media #
|
||||
# #
|
||||
############################################################
|
||||
|
||||
# Router for public media
|
||||
traefik.http.routers.matrix-steam-bridge-public-media.rule=Host(`{{ matrix_server_fqn_matrix }}`) && PathPrefix(`/_mautrix/publicmedia/{{ matrix_domain }}/`)
|
||||
traefik.http.routers.matrix-steam-bridge-public-media.service=matrix-steam-bridge
|
||||
traefik.http.routers.matrix-steam-bridge-public-media.entrypoints={{ matrix_steam_bridge_container_labels_traefik_entrypoints }}
|
||||
traefik.http.routers.matrix-steam-bridge-public-media.tls={{ matrix_steam_bridge_container_labels_traefik_tls | to_json }}
|
||||
{% if matrix_steam_bridge_container_labels_traefik_tls %}
|
||||
traefik.http.routers.matrix-steam-bridge-public-media.tls.certResolver={{ matrix_steam_bridge_container_labels_traefik_tls_certResolver }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
############################################################
|
||||
# #
|
||||
# /Public Media #
|
||||
# #
|
||||
############################################################
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{{ matrix_steam_bridge_container_labels_additional_labels }}
|
Reference in New Issue
Block a user