Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

101 строка
7.0 KiB

  1. {% if matrix_hookshot_container_labels_traefik_enabled %}
  2. traefik.enable=true
  3. {% if matrix_hookshot_container_labels_traefik_docker_network %}
  4. traefik.docker.network={{ matrix_hookshot_container_labels_traefik_docker_network }}
  5. {% endif %}
  6. {# Webhooks #}
  7. {% if matrix_hookshot_container_labels_webhooks_enabled %}
  8. traefik.http.routers.matrix-hookshot-webhooks.rule={{ matrix_hookshot_container_labels_webhooks_traefik_rule }}
  9. traefik.http.routers.matrix-hookshot-webhooks.middlewares=matrix-hookshot-webhooks-strip-prefix
  10. {% if matrix_hookshot_container_labels_webhooks_traefik_priority | int > 0 %}
  11. traefik.http.routers.matrix-hookshot-webhooks.priority={{ matrix_hookshot_container_labels_webhooks_traefik_priority }}
  12. {% endif %}
  13. traefik.http.routers.matrix-hookshot-webhooks.service=matrix-hookshot-webhooks
  14. traefik.http.routers.matrix-hookshot-webhooks.entrypoints={{ matrix_hookshot_container_labels_webhooks_traefik_entrypoints }}
  15. traefik.http.routers.matrix-hookshot-webhooks.tls={{ matrix_hookshot_container_labels_webhooks_traefik_tls | to_json }}
  16. {% if matrix_hookshot_container_labels_webhooks_traefik_tls %}
  17. traefik.http.routers.matrix-hookshot-webhooks.tls.certResolver={{ matrix_hookshot_container_labels_webhooks_traefik_tls_certResolver }}
  18. {% endif %}
  19. traefik.http.middlewares.matrix-hookshot-webhooks-strip-prefix.stripprefix.prefixes={{ matrix_hookshot_webhook_endpoint }}
  20. traefik.http.services.matrix-hookshot-webhooks.loadbalancer.server.port={{ matrix_hookshot_webhook_port }}
  21. {% endif %}
  22. {# Appservice #}
  23. {% if matrix_hookshot_container_labels_appservice_enabled %}
  24. traefik.http.routers.matrix-hookshot-appservice.rule={{ matrix_hookshot_container_labels_appservice_traefik_rule }}
  25. traefik.http.routers.matrix-hookshot-appservice.middlewares=matrix-hookshot-appservice-strip-prefix
  26. {% if matrix_hookshot_container_labels_appservice_traefik_priority | int > 0 %}
  27. traefik.http.routers.matrix-hookshot-appservice.priority={{ matrix_hookshot_container_labels_appservice_traefik_priority }}
  28. {% endif %}
  29. traefik.http.routers.matrix-hookshot-appservice.service=matrix-hookshot-appservice
  30. traefik.http.routers.matrix-hookshot-appservice.entrypoints={{ matrix_hookshot_container_labels_appservice_traefik_entrypoints }}
  31. traefik.http.routers.matrix-hookshot-appservice.tls={{ matrix_hookshot_container_labels_appservice_traefik_tls | to_json }}
  32. {% if matrix_hookshot_container_labels_appservice_traefik_tls %}
  33. traefik.http.routers.matrix-hookshot-appservice.tls.certResolver={{ matrix_hookshot_container_labels_appservice_traefik_tls_certResolver }}
  34. {% endif %}
  35. traefik.http.middlewares.matrix-hookshot-appservice-strip-prefix.stripprefix.prefixes={{ matrix_hookshot_appservice_endpoint }}
  36. traefik.http.services.matrix-hookshot-appservice.loadbalancer.server.port={{ matrix_hookshot_appservice_port }}
  37. {% endif %}
  38. {# Widgets #}
  39. {% if matrix_hookshot_container_labels_widgets_enabled %}
  40. traefik.http.routers.matrix-hookshot-widgets.rule={{ matrix_hookshot_container_labels_widgets_traefik_rule }}
  41. traefik.http.routers.matrix-hookshot-widgets.middlewares=matrix-hookshot-widgets-strip-prefix
  42. {% if matrix_hookshot_container_labels_widgets_traefik_priority | int > 0 %}
  43. traefik.http.routers.matrix-hookshot-widgets.priority={{ matrix_hookshot_container_labels_widgets_traefik_priority }}
  44. {% endif %}
  45. traefik.http.routers.matrix-hookshot-widgets.service=matrix-hookshot-widgets
  46. traefik.http.routers.matrix-hookshot-widgets.entrypoints={{ matrix_hookshot_container_labels_widgets_traefik_entrypoints }}
  47. traefik.http.routers.matrix-hookshot-widgets.tls={{ matrix_hookshot_container_labels_widgets_traefik_tls | to_json }}
  48. {% if matrix_hookshot_container_labels_widgets_traefik_tls %}
  49. traefik.http.routers.matrix-hookshot-widgets.tls.certResolver={{ matrix_hookshot_container_labels_widgets_traefik_tls_certResolver }}
  50. {% endif %}
  51. traefik.http.middlewares.matrix-hookshot-widgets-strip-prefix.stripprefix.prefixes={{ matrix_hookshot_widgets_endpoint }}
  52. traefik.http.services.matrix-hookshot-widgets.loadbalancer.server.port={{ matrix_hookshot_widgets_port }}
  53. {% endif %}
  54. {# Widgets #}
  55. {% if matrix_hookshot_container_labels_provisioning_enabled %}
  56. traefik.http.routers.matrix-hookshot-provisioning.rule={{ matrix_hookshot_container_labels_provisioning_traefik_rule }}
  57. traefik.http.routers.matrix-hookshot-provisioning.middlewares=matrix-hookshot-provisioning-strip-prefix
  58. {% if matrix_hookshot_container_labels_provisioning_traefik_priority | int > 0 %}
  59. traefik.http.routers.matrix-hookshot-provisioning.priority={{ matrix_hookshot_container_labels_provisioning_traefik_priority }}
  60. {% endif %}
  61. traefik.http.routers.matrix-hookshot-provisioning.service=matrix-hookshot-provisioning
  62. traefik.http.routers.matrix-hookshot-provisioning.entrypoints={{ matrix_hookshot_container_labels_provisioning_traefik_entrypoints }}
  63. traefik.http.routers.matrix-hookshot-provisioning.tls={{ matrix_hookshot_container_labels_provisioning_traefik_tls | to_json }}
  64. {% if matrix_hookshot_container_labels_provisioning_traefik_tls %}
  65. traefik.http.routers.matrix-hookshot-provisioning.tls.certResolver={{ matrix_hookshot_container_labels_provisioning_traefik_tls_certResolver }}
  66. {% endif %}
  67. traefik.http.middlewares.matrix-hookshot-provisioning-strip-prefix.stripprefix.prefixes={{ matrix_hookshot_provisioning_endpoint }}
  68. traefik.http.services.matrix-hookshot-provisioning.loadbalancer.server.port={{ matrix_hookshot_provisioning_port }}
  69. {% endif %}
  70. {# Metrics #}
  71. {% set metricsMiddlewares = ['matrix-hookshot-metrics-replace-path'] %}
  72. traefik.http.middlewares.matrix-hookshot-metrics-replace-path.replacepath.path=/metrics
  73. {% if matrix_hookshot_container_labels_metrics_middleware_basic_auth_enabled %}
  74. {% set metricsMiddlewares = metricsMiddlewares + ['matrix-hookshot-metrics-basic-auth'] %}
  75. traefik.http.middlewares.matrix-hookshot-metrics-basic-auth.basicauth.users={{ matrix_hookshot_container_labels_metrics_middleware_basic_auth_users }}
  76. {% endif %}
  77. {% if matrix_hookshot_container_labels_metrics_enabled %}
  78. traefik.http.routers.matrix-hookshot-metrics.rule={{ matrix_hookshot_container_labels_metrics_traefik_rule }}
  79. traefik.http.routers.matrix-hookshot-metrics.middlewares={{ metricsMiddlewares | join(',') }}
  80. {% if matrix_hookshot_container_labels_metrics_traefik_priority | int > 0 %}
  81. traefik.http.routers.matrix-hookshot-metrics.priority={{ matrix_hookshot_container_labels_metrics_traefik_priority }}
  82. {% endif %}
  83. traefik.http.routers.matrix-hookshot-metrics.service=matrix-hookshot-metrics
  84. traefik.http.routers.matrix-hookshot-metrics.entrypoints={{ matrix_hookshot_container_labels_metrics_traefik_entrypoints }}
  85. traefik.http.routers.matrix-hookshot-metrics.tls={{ matrix_hookshot_container_labels_metrics_traefik_tls | to_json }}
  86. {% if matrix_hookshot_container_labels_metrics_traefik_tls %}
  87. traefik.http.routers.matrix-hookshot-metrics.tls.certResolver={{ matrix_hookshot_container_labels_metrics_traefik_tls_certResolver }}
  88. {% endif %}
  89. traefik.http.services.matrix-hookshot-metrics.loadbalancer.server.port={{ matrix_hookshot_metrics_port }}
  90. {% endif %}
  91. {% endif %}
  92. {{ matrix_hookshot_container_labels_additional_labels }}