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.11.36/element-v1.11.36.tar.gz

tar --strip-components=1 --extract --gunzip --file=element-v1.11.36.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",
"uisi_autorageshake_app": "element-auto-uisi",
"default_country_code": "DE",
"show_labs_settings": false,
"features": {},
"default_federate": true,
"default_theme": "light",
"room_directory": {
"servers": [
"erfurt.chat",
"matrix.org"
]
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"setting_defaults": {
"breadcrumbs": true
},
"jitsi": {
"preferred_domain": "meet.element.io"
},
"element_call": {
"url": "https://call.element.io",
"participant_limit": 8,
"brand": "Element Call"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx",
"branding": {
"authFooterLinks": [
{
"url": "https://technikkultur-erfurt.de/impressum/",
"text": "Impressum"
},
{
"url": "https://technikkultur-erfurt.de/datenschutzerklaerung/",
"text": "Datenschutzerklärung"
}
]
}
}

Dienst aktivieren und neustarten

sudo systemctl enable nginx.service

sudo systemctl restart nginx.service

Backup mit Borgmatic

Installation siehe mariadb

Konfiguration

...
location:
# List of source directories to backup (required). Globs and
# tildes are expanded.
source_directories:
- /etc
- /home
- /root
- /var/log
- /var/www
...