Work on putting Element in place

This commit is contained in:
Salt 2021-10-02 22:50:25 -05:00
parent 7337fb49ed
commit c12d37cad2
2 changed files with 16 additions and 5 deletions

View File

@ -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 ]

View File

@ -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 ]