Browse Source

Add element app

master-prepare
Luke Childs 3 years ago
parent
commit
bb10e17a62
  1. 14
      apps/element/docker-compose.yml
  2. 22
      apps/registry.json
  3. 4
      scripts/configure
  4. 2
      templates/.env-sample
  5. 4
      templates/torrc-sample

14
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

22
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://<synapse-tor-hidden-service-url). \n\nIt gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.\n\nThe very best end-to-end encryption and Element’s unique cross-signed device verification means only those that should be in the conversation can read the messages - no eavesdroppers or imposters.\n\nMost important of all, Element is open; built on the Matrix network, it connects to all other Matrix-based apps as well as bridging into proprietary systems. You can stay in Element while talking to friends and family in other apps.\n\nElement is open source. You know exactly what you’re getting. Full transparency, the freedom to extend and customise with the support of a vibrant community of developers.",
"developer": "New Vector Ltd",
"website": "https://element.io",
"dependencies": [],
"repo": "https://github.com/vector-im/element-web",
"support": "https://matrix.to/#/#element-web:matrix.org",
"port": 8088,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultPassword": "",
"torOnly": false
},
{
"id": "simple-torrent",
"category": "Networking",

4
scripts/configure

@ -178,6 +178,8 @@ APP_PHOTOPRISM_PORT="8087"
APP_PHOTOPRISM_DB_IP="10.21.21.43"
APP_SYNAPSE_IP="10.21.21.44"
APP_SYNAPSE_PORT="8008"
APP_ELEMENT_IP="10.21.21.45"
APP_ELEMENT_PORT="8088"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -361,6 +363,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-photoprism-db-ip>/${APP_PHOTOPRISM_DB_IP}/g" "${template}"
sed -i "s/<app-synapse-ip>/${APP_SYNAPSE_IP}/g" "${template}"
sed -i "s/<app-synapse-port>/${APP_SYNAPSE_PORT}/g" "${template}"
sed -i "s/<app-element-ip>/${APP_ELEMENT_IP}/g" "${template}"
sed -i "s/<app-element-port>/${APP_ELEMENT_PORT}/g" "${template}"
done
##########################################################

2
templates/.env-sample

@ -81,3 +81,5 @@ APP_PHOTOPRISM_PORT=<app-photoprism-port>
APP_PHOTOPRISM_DB_IP=<app-photoprism-db-ip>
APP_SYNAPSE_IP=<app-synapse-ip>
APP_SYNAPSE_PORT=<app-synapse-port>
APP_ELEMENT_IP=<app-element-ip>
APP_ELEMENT_PORT=<app-element-port>

4
templates/torrc-sample

@ -115,4 +115,8 @@ HiddenServiceDir /var/lib/tor/app-synapse
HiddenServicePort 80 <app-synapse-ip>:<app-synapse-port>
HiddenServicePort <app-synapse-port> <app-synapse-ip>:<app-synapse-port>
# element Hidden Service
HiddenServiceDir /var/lib/tor/app-element
HiddenServicePort 80 <app-element-ip>:80
HashedControlPassword <password>

Loading…
Cancel
Save