Logo Gray

Element Webclient Installation für Matrix/ Synapse

Debian 12

				
					sudo apt-get update
				
			
				
					sudo apt-get install wget
				
			

neuste version unter: https://github.com/element-hq/element-web/releases/tag/v1.11.86

				
					wget https://github.com/element-hq/element-web/releases/download/v1.11.86/element-v1.11.86.tar.gz
				
			
				
					tar -xzf element-v1.11.86.tar.gz

				
			

auf debian 12 existiert /var/www nicht standartmäßig. Also erstellen wir den Ordner.

				
					sudo mkdir -p /var/www

				
			

wir verschieben den Download in das Verzeichnis.

				
					sudo mv element-v1.11.86 /var/www/element

				
			
				
					cd /var/www/element

				
			
				
					cp config.sample.json config.json

				
			
				
					nano config.json

				
			

Optional: Anpassung der Jitsi-Integration (für videocalls)

Wenn du deinen eigenen Jitsi-Meet-Server betreibst, kannst du den Wert in jitsi.preferred_domain auf die URL deines Servers ändern. Falls nicht, bleibt der Wert meet.element.io.

				
					{
    "default_server_config": {
        "m.homeserver": {
            "base_url": "https://matrix.menter.de",
            "server_name": "matrix.menter.de"
        },
        "m.identity_server": {
            "base_url": "https://vector.im"
        }
    },
    "disable_custom_urls": true,
    "disable_guests": true,
    "disable_login_language_selector": false,
    "disable_3pid_login": true,
    "force_verification": false,
    "brand": "Element",
    "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"
    ],
    "default_widget_container_height": 280,
    "default_country_code": "DE",
    "show_labs_settings": false,
    "features": {},
    "default_federate": true,
    "default_theme": "light",
    "room_directory": {
        "servers": ["matrix.menter.de"]
    },
    "enable_presence_by_hs_url": {
        "https://matrix.menter.de": true
    },
    "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"
}

				
			

strg + s , strg + x

				
					nano config.json

				
			
				
					sudo apt install nginx

				
			
				
					sudo nano /etc/nginx/sites-available/element

				
			
				
					server {
    listen 80;
    server_name element.menter.de;

    root /var/www/element;
    index index.html;

    location / {
        try_files $uri /index.html;
    }

    # Optional: Logging
    access_log /var/log/nginx/element.access.log;
    error_log /var/log/nginx/element.error.log;
}

				
			
				
					sudo ln -s /etc/nginx/sites-available/element /etc/nginx/sites-enabled/

				
			
				
					sudo nginx -t

				
			
				
					sudo systemctl restart nginx

				
			
				
					sudo systemctl status nginx

				
			
				
					sudo apt install certbot python3-certbot-nginx

				
			
				
					sudo certbot --nginx -d chat.menter.de