From bb10e17a6256db19767af7eaeb93e665ac275b24 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 5 Aug 2021 13:08:47 +0100 Subject: [PATCH] Add element app --- apps/element/docker-compose.yml | 14 ++++++++++++++ apps/registry.json | 22 ++++++++++++++++++++++ scripts/configure | 4 ++++ templates/.env-sample | 2 ++ templates/torrc-sample | 4 ++++ 5 files changed, 46 insertions(+) create mode 100644 apps/element/docker-compose.yml diff --git a/apps/element/docker-compose.yml b/apps/element/docker-compose.yml new file mode 100644 index 0000000..1fdd094 --- /dev/null +++ b/apps/element/docker-compose.yml @@ -0,0 +1,14 @@ +version: "3.7" + +services: + web: + image: getumbrel/element-web:v1.7.34 + # NGINX parent container requires root + # user: "1000:1000" + restart: on-failure + stop_grace_period: 1m + ports: + - "$APP_ELEMENT_PORT:80" + networks: + default: + ipv4_address: $APP_ELEMENT_IP diff --git a/apps/registry.json b/apps/registry.json index 9e13f00..5303e03 100644 --- a/apps/registry.json +++ b/apps/registry.json @@ -131,6 +131,28 @@ "defaultPassword": "", "torOnly": false }, + { + "id": "element", + "category": "Messaging", + "name": "Element", + "version": "2.1.5", + "tagline": "A glossy Matrix client compatible with Synapse", + "description": "Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. You can connect it to the Synapse installation running on your Umbrel. An easy way to get started is to install the \"Synapse\" Matrix homserver on your Umbrel and change Element's Homserver URL from matrix.org to your Synapse's homeserver URL (http://umbrel.local:8008 or http:///${APP_PHOTOPRISM_DB_IP}/g" "${template}" sed -i "s//${APP_SYNAPSE_IP}/g" "${template}" sed -i "s//${APP_SYNAPSE_PORT}/g" "${template}" + sed -i "s//${APP_ELEMENT_IP}/g" "${template}" + sed -i "s//${APP_ELEMENT_PORT}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index fa85d42..0b1f80c 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -81,3 +81,5 @@ APP_PHOTOPRISM_PORT= APP_PHOTOPRISM_DB_IP= APP_SYNAPSE_IP= APP_SYNAPSE_PORT= +APP_ELEMENT_IP= +APP_ELEMENT_PORT= diff --git a/templates/torrc-sample b/templates/torrc-sample index 85a31fd..f07c8b2 100644 --- a/templates/torrc-sample +++ b/templates/torrc-sample @@ -115,4 +115,8 @@ HiddenServiceDir /var/lib/tor/app-synapse HiddenServicePort 80 : HiddenServicePort : +# element Hidden Service +HiddenServiceDir /var/lib/tor/app-element +HiddenServicePort 80 :80 + HashedControlPassword