Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

75 líneas
3.7 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2025 MDAD project contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. {% if matrix_bridge_steam_container_labels_traefik_enabled %}
  6. traefik.enable=true
  7. {% if matrix_bridge_steam_container_labels_traefik_docker_network %}
  8. traefik.docker.network={{ matrix_bridge_steam_container_labels_traefik_docker_network }}
  9. {% endif %}
  10. traefik.http.services.matrix-steam-bridge.loadbalancer.server.port={{ matrix_bridge_steam_appservice_port }}
  11. {% if matrix_bridge_steam_public_media_enabled %}
  12. ############################################################
  13. # #
  14. # Public Media #
  15. # #
  16. ############################################################
  17. # Router for public media
  18. traefik.http.routers.matrix-steam-bridge-public-media.rule=Host(`{{ matrix_server_fqn_matrix }}`) && PathPrefix(`/_mautrix/publicmedia/{{ matrix_domain }}/`)
  19. traefik.http.routers.matrix-steam-bridge-public-media.service=matrix-steam-bridge
  20. traefik.http.routers.matrix-steam-bridge-public-media.entrypoints={{ matrix_bridge_steam_container_labels_traefik_entrypoints }}
  21. traefik.http.routers.matrix-steam-bridge-public-media.tls={{ matrix_bridge_steam_container_labels_traefik_tls | to_json }}
  22. {% if matrix_bridge_steam_container_labels_traefik_tls %}
  23. traefik.http.routers.matrix-steam-bridge-public-media.tls.certResolver={{ matrix_bridge_steam_container_labels_traefik_tls_certResolver }}
  24. {% endif %}
  25. ############################################################
  26. # #
  27. # /Public Media #
  28. # #
  29. ############################################################
  30. {% endif %}
  31. {% if matrix_bridge_steam_container_labels_exposure_enabled %}
  32. ############################################################
  33. # #
  34. # Bridge API exposure #
  35. # #
  36. ############################################################
  37. traefik.http.middlewares.matrix-steam-bridge-exposure-strip-prefix.stripprefix.prefixes={{ matrix_bridge_steam_exposure_path_prefix }}
  38. traefik.http.routers.matrix-steam-bridge-exposure.middlewares=matrix-steam-bridge-exposure-strip-prefix
  39. traefik.http.routers.matrix-steam-bridge-exposure.rule={{ matrix_bridge_steam_container_labels_exposure_traefik_rule }}
  40. {% if matrix_bridge_steam_container_labels_exposure_traefik_priority | int > 0 %}
  41. traefik.http.routers.matrix-steam-bridge-exposure.priority={{ matrix_bridge_steam_container_labels_exposure_traefik_priority }}
  42. {% endif %}
  43. traefik.http.routers.matrix-steam-bridge-exposure.service=matrix-steam-bridge
  44. traefik.http.routers.matrix-steam-bridge-exposure.entrypoints={{ matrix_bridge_steam_container_labels_exposure_traefik_entrypoints }}
  45. traefik.http.routers.matrix-steam-bridge-exposure.tls={{ matrix_bridge_steam_container_labels_exposure_traefik_tls | to_json }}
  46. {% if matrix_bridge_steam_container_labels_exposure_traefik_tls %}
  47. traefik.http.routers.matrix-steam-bridge-exposure.tls.certResolver={{ matrix_bridge_steam_container_labels_exposure_traefik_tls_certResolver }}
  48. {% endif %}
  49. ############################################################
  50. # #
  51. # /Bridge API exposure #
  52. # #
  53. ############################################################
  54. {% endif %}
  55. {% endif %}
  56. {{ matrix_bridge_steam_container_labels_additional_labels }}