Container 'matrix-element'

Ressourcen

0.25 GB RAM

1 Cores

3 GB HDD (root-fs)

System

interne IPs

10.2.0.15, fd00:10:2:0::15

Dienste

element-web (via NGINX)

Installation

Standard-Template mit Benutzern

NGINX

NGINX installieren

sudo apt-get install nginx

Konfigurationen erstellen

server { listen 80 default_server; listen [::]:80 default_server; root /var/www/public_html; index index.html; server_name _; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } }

Webverzeichnis erstellen

sudo mkdir -p /var/www/public_html

Installation von Element-web (letztes tar.gz von https://github.com/vector-im/element-web/releases)

wget https://github.com/vector-im/element-web/releases/download/v1.7.22/element-v1.7.22.tar.gz

tar --strip-components=1 --extract --gunzip --file=element-v1.7.22.tar.gz --directory=/var/www/public_html/

sudo cp /var/www/public_html/config.sample.json /var/www/public_html/config.json

sudo chown -R www-data:www-data /var/www/public_html

Konfigurationen anpassen

{ "default_server_config": { "m.homeserver": { "base_url": "https://erfurt.chat", "server_name": "erfurt.chat" }, "m.identity_server": { "base_url": "https://vector.im" } }, "disable_custom_urls": false, "disable_guests": false, "disable_login_language_selector": false, "disable_3pid_login": false, "brand": "erfurt.chat", "integrations_ui_url": "https://scalar.vector.im/", "integrations_rest_url": "https://scalar.vector.im/api", "integrations_widgets_urls": [ "https://scalar.vector.im/_matrix/integrations/v1", "https://scalar.vector.im/api", "https://scalar-staging.vector.im/_matrix/integrations/v1", "https://scalar-staging.vector.im/api", "https://scalar-staging.riot.im/scalar/api" ], "bug_report_endpoint_url": "https://element.io/bugreports/submit", "defaultCountryCode": "DE", "showLabsSettings": false, "features": { "feature_new_spinner": false }, "default_federate": true, "default_theme": "light", "roomDirectory": { "servers": [ "erfurt.chat", "matrix.org" ] }, "piwik": false, "enable_presence_by_hs_url": { "https://matrix.org": false, "https://matrix-client.matrix.org": false }, "settingDefaults": { "breadcrumbs": true }, "jitsi": { "preferredDomain": "jitsi.riot.im" } }

Dienst aktivieren und neustarten

sudo systemctl enable nginx.service

sudo systemctl restart nginx.service