Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

59 regels
3.0 KiB

  1. {% if matrix_mautrix_discord_container_labels_traefik_enabled %}
  2. traefik.enable=true
  3. {% if matrix_mautrix_discord_container_labels_traefik_docker_network %}
  4. traefik.docker.network={{ matrix_mautrix_discord_container_labels_traefik_docker_network }}
  5. {% endif %}
  6. traefik.http.services.matrix-mautrix-discord.loadbalancer.server.port=8080
  7. {% if matrix_mautrix_discord_container_labels_avatar_proxy_enabled %}
  8. ############################################################
  9. # #
  10. # Avatar proxy #
  11. # #
  12. ############################################################
  13. {% set middlewares = [] %}
  14. {% if matrix_mautrix_discord_container_labels_traefik_path_prefix != '/' %}
  15. traefik.http.middlewares.matrix-mautrix-discord-slashless-redirect.redirectregex.regex=({{ matrix_mautrix_discord_container_labels_traefik_path_prefix | quote }})$
  16. traefik.http.middlewares.matrix-mautrix-discord-slashless-redirect.redirectregex.replacement=${1}/
  17. {% set middlewares = middlewares + ['matrix-mautrix-discord-slashless-redirect'] %}
  18. {% endif %}
  19. {% if matrix_mautrix_discord_container_labels_traefik_path_prefix != '/' %}
  20. traefik.http.middlewares.matrix-mautrix-discord-strip-prefix.stripprefix.prefixes={{ matrix_mautrix_discord_container_labels_traefik_path_prefix }}
  21. {% set middlewares = middlewares + ['matrix-mautrix-discord-strip-prefix'] %}
  22. {% endif %}
  23. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.rule={{ matrix_mautrix_discord_container_labels_avatar_proxy_traefik_rule }}
  24. {% if matrix_mautrix_discord_container_labels_avatar_proxy_traefik_priority | int > 0 %}
  25. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.priority={{ matrix_mautrix_discord_container_labels_avatar_proxy_traefik_priority }}
  26. {% endif %}
  27. {% if middlewares | length > 0 %}
  28. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.middlewares={{ middlewares | join(',') }}
  29. {% endif %}
  30. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.service=matrix-mautrix-discord
  31. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.entrypoints={{ matrix_mautrix_discord_container_labels_avatar_proxy_traefik_entrypoints }}
  32. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.tls={{ matrix_mautrix_discord_container_labels_avatar_proxy_traefik_tls | to_json }}
  33. {% if matrix_mautrix_discord_container_labels_avatar_proxy_traefik_tls %}
  34. traefik.http.routers.matrix-mautrix-discord-avatar-proxy.tls.certResolver={{ matrix_mautrix_discord_container_labels_avatar_proxy_traefik_tls_certResolver }}
  35. {% endif %}
  36. ############################################################
  37. # #
  38. # /Avatar proxy #
  39. # #
  40. ############################################################
  41. {% endif %}
  42. {% endif %}
  43. {{ matrix_mautrix_discord_container_labels_additional_labels }}