From c12d37cad288e18d9f89e9f84b07ff68a123405d Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 2 Oct 2021 22:50:25 -0500 Subject: [PATCH] Work on putting Element in place --- playbooks/prod_com.yml | 8 +++----- playbooks/tasks/web/element-web.yml | 13 +++++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 playbooks/tasks/web/element-web.yml 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 ]