@cryptotaxi247 / infra / commits / 3db30bb7

non-critical-infra/matrix-synapse: migrate to unix domain socket

Martin Weinelt committed Jun 12, 2024 at 23:55 UTC 3db30bb74941212e950096a4b8ade343dc33d928
1 file changed +4 -10
non-critical-infra/modules/matrix-synapse.nix
+4 -10
@@ -67,10 +67,9 @@
67 "redis-matrix-synapse"
68 ];
69
70 - #systemd.services.matrix-synapse.enable = false;
71 -
70 services.matrix-synapse = {
71 enable = true;
72 + enableRegistrationScript = false; # not compatible with unix sockets
73 withJemalloc = true;
74
75 extraConfigFiles = [
@@ -111,11 +110,8 @@
110
111 listeners = [ {
112 type = "http";
114 - # TODO: migrate to UNIX domain socket
115 - #path = "/run/matrix-synapse/matrix-synapse.sock";
116 - #mode = "0660";
117 - port = 8008;
118 - tls = false;
113 + path = "/run/matrix-synapse/matrix-synapse.sock";
114 + mode = "0660";
115 resources = [ {
116 compress = true;
117 names = [
@@ -149,9 +145,7 @@
145 services.nginx = {
146 clientMaxBodySize = config.services.matrix-synapse.settings.max_upload_size;
147 upstreams."matrix-synapse".servers = {
152 - # TODO: migrate to UNIX domain socket
153 - #"unix:/run/matrix-synapse/matrix-synapse.sock" = {};
154 - "localhost:8008" = {};
148 + "unix:/run/matrix-synapse/matrix-synapse.sock" = {};
149 };
150 virtualHosts."matrix.nixos.org" = {
151 forceSSL = true;