diff --git a/playbooks/prod_com.yml b/playbooks/prod_com.yml index e74e62d..77dc020 100755 --- a/playbooks/prod_com.yml +++ b/playbooks/prod_com.yml @@ -16,6 +16,7 @@ - name: include tasks for applications include_tasks: tasks/{{ item }} with_items: + - web/element-web.yml - web/synapse.yml tags: [ always ] roles: @@ -29,13 +30,10 @@ ingress_servers: - name: matrix.desu.ltd proxies: - - location: ~* ^(\/_matrix|\/_synapse\/client) + - location: "~* ^(\/_matrix|\/_synapse|\/_client)" pass: http://synapse:8008 - locations: - location: / - contents: | - default_type text/html; - return 200 'Watch this space...'; + pass: http://element:80 directives: - "client_max_body_size 0" tags: [ web, docker, ingress ] diff --git a/playbooks/tasks/web/element-web.yml b/playbooks/tasks/web/element-web.yml new file mode 100644 index 0000000..bf3c189 --- /dev/null +++ b/playbooks/tasks/web/element-web.yml @@ -0,0 +1,13 @@ +# vim:ft=ansible: +- name: docker deploy element-web + docker_container: + name: element-web + image: vectorim/riot-web:develop + env: + TZ: "America/Chicago" + networks: + - name: web + aliases: [ "element" ] + volumes: + - /data/element/config.json:/app/config.json + tags: [ docker, element ]