- 1. dns einrichten, zb. matrix.dein.server
- 2. portfreischaltung 8448 auf reverse proxy geben (braucht er für federated zeugs)
- 3. debian 12 lxc erstellen (8gb disk, 2gb ram)
- 4. auf debian ausführen:
- cd /tmp
- wget https://github.com/girlbossceo/conduwuit/releases/download/v0.4.6/x86_64-unknown-linux-musl-debug.deb
- apt install -f /tmp/x86_64-unknown-linux-musl-debug.deb
- nano /etc/conduwuit/conduwuit.toml
- folgende config einfügen: https://pastebin.kmpr.at//paste.php?id=3f3fd9aa-924f-11ef-aaf9-3a303f3fd287
- systemctl enable conduwuit
- systemctl start conduwuit
- 5. nginx reverse proxy beispiel:
- server {
- server_name matrix.dein.server;
- listen 80;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl;
- listen 8448 ssl;
- server_name matrix.dein.server;
- include snippets/geoblock.conf;
- include snippets/ssl.conf;
- proxy_read_timeout 720s;
- proxy_connect_timeout 720s;
- proxy_send_timeout 720s;
- client_max_body_size 15m;
- keepalive_timeout 15;
- access_log /var/log/nginx/matrix_ssl.access.log;
- error_log /var/log/nginx/matrix_ssl.error.log;
- location /.well-known/matrix/server {
- return 200 '{"m.server": "matrix.dein.server:443"}';
- types { } default_type "application/json; charset=utf-8";
- }
- location /.well-known/matrix/client {
- return 200 '{"m.homeserver": {"base_url": "https://matrix.dein.server"}}';
- types { } default_type "application/json; charset=utf-8";
- add_header "Access-Control-Allow-Origin" *;
- }
- location /.well-known {
- root /home/matrix/public/;
- }
- location ~* ^(\/_matrix|\/_synapse\/client|\/_conduwuit) {
- proxy_pass http://srv-matrix.local:6167;
- add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS, PATCH, HEAD';
- proxy_set_header X-Forwarded-For $remote_addr;
- proxy_buffering off;
- proxy_set_header Host $host;
- }
- }
- in der doku steht auch was von caddy:
- Create /etc/caddy/conf.d/conduwuit_caddyfile and enter this (substitute for your server name).
- your.server.name, your.server.name:8448 {
- # TCP reverse_proxy
- 127.0.0.1:6167
- # UNIX socket
- #reverse_proxy unix//run/conduwuit/conduwuit.sock
- }
- That's it! Just start and enable the service and you're set.
- sudo systemctl enable --now caddy
Letzte Pastes