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.
 
 

30 lines
832 B

  1. #jinja2: lstrip_blocks: "True"
  2. worker_app: synapse.app.{{ item.type }}
  3. worker_name: {{ item.type ~ ':' ~ item.port }}
  4. worker_replication_host: 127.0.0.1
  5. worker_replication_http_port: {{ matrix_synapse_replication_http_port }}
  6. {% if item.type not in [ 'appservice', 'federation_sender', 'pusher' ] %}
  7. worker_listeners:
  8. - type: http
  9. port: {{ item.port }}
  10. resources:
  11. - names:
  12. {% if item.type in [ 'generic_worker', 'frontend_proxy', 'user_dir' ] %}
  13. - client
  14. {% endif %}
  15. {% if item.type in [ 'generic_worker' ] %}
  16. - federation
  17. {% elif item.type in [ 'media_repository' ] %}
  18. - media
  19. {% endif %}
  20. {% endif %}
  21. {% if item.type == 'frontend_proxy' %}
  22. worker_main_http_uri: http://127.0.0.1:8008
  23. {% endif %}
  24. worker_daemonize: false
  25. worker_log_config: /data/{{ matrix_server_fqn_matrix }}.log.config