!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

132 Members
Coordination and discussion about the matrix subsystem in NixOS - https://nixos.wiki/wiki/Matrix68 Servers

Load older messages


SenderMessageTime
18 Dec 2023
@philipp:xndr.dephilipp You'd probably have to write your own service with systemd.services. You can proabably take inspiration from services.mautrix-whatsapp or services.mautrix-facebook. 16:43:44
@graphite:tchncs.deAlexok, thanks!16:48:27
@graphite:tchncs.deAlexI might contribute a module to nixpkgs16:48:33
@delroth:delroth.net@delroth:delroth.netI have a not-very-good module here: https://github.com/delroth/infra.delroth.net/blob/master/roles/matrix-signal-bridge.nix17:32:52
@delroth:delroth.net@delroth:delroth.netfeel free to reuse parts of it17:33:01
@delroth:delroth.net@delroth:delroth.netbugs I know about: bridging images doesn't work because I think the systemd FS sandbox on signald is setup too tight - but I haven't looked too deeply at the problem17:34:58
@vskilet:sene.ovhVictor
In reply to @graphite:tchncs.de
Hi! How can I use the mautrix-signal bridge? It only has a package, but no module
You should probably have a look to this : https://gitlab.com/coffeetables/nix-matrix-appservices
17:36:18
@graphite:tchncs.deAlexfor some reason, my Matrix server works locally, but not on my site17:41:15
@graphite:tchncs.deAlex

This is my caddy config:

inputs: { pkgs, ... }: {
    services.postgresql.enable = true;
    services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" ''
      CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
      CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
        TEMPLATE template0
        LC_COLLATE = "C"
        LC_CTYPE = "C";
    '';
  services.matrix-synapse = {
    enable = true;
    settings = {
      server_name = "gra.phite.ro";
      public_baseurl = "https://matrix.gra.phite.ro";
      listeners = [
        {
          port = 8008;
          bind_addresses = [ "::1" ];

          # Caddy handles HTTPS and TLS
          type = "http";
          tls = false;

          x_forwarded = true;
          resources = [
            {
              names = [ "client" "federation" ];
              compress = true;
            }
          ];
        }
      ];
    };
  };
}

17:42:21
@graphite:tchncs.deAlex

and my caddyfile:

https://gra.phite.ro {
	root * /home/ultra/code/html/blog
	file_server
}

http://gra.phite.ro {
	root * /home/ultra/code/html/blog
	file_server
}

https://5.12.179.165 {
	root * /home/ultra/code/html/blog
	file_server
}

https://192.168.100.35 {
	root * /home/ultra/code/html/blog
	file_server
}

http://0.0.0.0:80 {
	root * /home/ultra/code/html/blog
	file_server
}

https://git.gra.phite.ro {
	reverse_proxy :3000
}

https://cloud.gra.phite.ro {
	reverse_proxy :3001
}

https://pwd.gra.phite.ro {
	reverse_proxy :3002
}

https://matrix.gra.phite.ro {
	reverse_proxy :8008
}

# https://phite.ro {
# 	redir https://gra.phite.ro
# }

# http://phite.ro {
# 	redir http://gra.phite.ro
# }
17:43:02
@graphite:tchncs.deAlex * for some reason, my Matrix server works on localhost, but not on my site17:45:54
@graphite:tchncs.deAlex *

This is my caddy config:

inputs: { pkgs, ... }: {
    services.postgresql.enable = true;
    services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" ''
      CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
      CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
        TEMPLATE template0
        LC_COLLATE = "C"
        LC_CTYPE = "C";
    '';
  services.matrix-synapse = {
    enable = true;
    settings = {
      server_name = "gra.phite.ro";
      public_baseurl = "https://matrix.gra.phite.ro";
      listeners = [
        {
          port = 3003;
          bind_addresses = [ "::1" ];

          # Caddy handles HTTPS and TLS
          type = "http";
          tls = false;

          x_forwarded = true;
          resources = [
            {
              names = [ "client" "federation" ];
              compress = true;
            }
          ];
        }
      ];
    };
  };
}

17:51:50
@graphite:tchncs.deAlex *

and my caddyfile:

https://gra.phite.ro {
	root * /home/ultra/code/html/blog
	file_server
}

http://gra.phite.ro {
	root * /home/ultra/code/html/blog
	file_server
}

https://5.12.179.165 {
	root * /home/ultra/code/html/blog
	file_server
}

https://192.168.100.35 {
	root * /home/ultra/code/html/blog
	file_server
}

http://0.0.0.0:80 {
	root * /home/ultra/code/html/blog
	file_server
}

https://git.gra.phite.ro {
	reverse_proxy :3000
}

https://cloud.gra.phite.ro {
	reverse_proxy :3001
}

https://pwd.gra.phite.ro {
	reverse_proxy :3002
}

https://matrix.gra.phite.ro {
	reverse_proxy :3003
}

# https://phite.ro {
# 	redir https://gra.phite.ro
# }

# http://phite.ro {
# 	redir http://gra.phite.ro
# }
17:52:05
@graphite:tchncs.deAlexdoes anyone else use synapse with caddy?17:55:29
20 Dec 2023
@julian:nekover.seJune changed their display name from June to June 📞 5863.23:32:11
21 Dec 2023
@julian:nekover.seJune changed their display name from June 📞 5863 to June.14:14:18
23 Dec 2023
@julian:nekover.seJune changed their display name from June to June 📞 5863.01:56:12
26 Dec 2023
@sugi:matrix.besaid.detokudan changed their display name from sugi to sugi 📞8658.00:55:54
28 Dec 2023
@piegames:matrix.org@piegames:matrix.org changed their display name from piegames to piegames [☎ 9712].01:33:49
30 Dec 2023
@mg:linuxistsuper.ems.hostmg invited @mor:linuxistcool.demor.19:47:13
@mor:linuxistcool.demor joined the room.19:47:14
@sugi:matrix.besaid.detokudan changed their display name from sugi 📞8658 to tokudan.22:59:01
31 Dec 2023
@piegames:matrix.org@piegames:matrix.org changed their display name from piegames [☎ 9712] to piegames.12:40:56
1 Jan 2024
@julian:nekover.seJune changed their display name from June 📞 5863 to June.18:28:15
2 Jan 2024
@1h0:matrix.org@1h0:matrix.org joined the room.11:34:49
8 Jan 2024
@hexa:lossy.networkhexasynapse workers and sliding sync are still not really reliably during system bringup22:27:05
@hexa:lossy.networkhexa cc ma27 Dandellion Sophie 22:27:13
@hexa:lossy.networkhexahm ok, sliding sync is due to a delay in providing the environment secrets22:27:46
@hexa:lossy.networkhexa

matrix-sliding-sync.service: Failed to load environment files: No such file or directory

22:27:53
@hexa:lossy.networkhexa *
matrix-sliding-sync.service: Failed to load environment files: No such file or directory
22:27:57

Show newer messages


Back to Room ListRoom Version: 4