diff options
Diffstat (limited to 'hosts/surtr/matrix')
| -rw-r--r-- | hosts/surtr/matrix/default.nix | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/hosts/surtr/matrix/default.nix b/hosts/surtr/matrix/default.nix index b07f9fe2..53b0bdc4 100644 --- a/hosts/surtr/matrix/default.nix +++ b/hosts/surtr/matrix/default.nix | |||
| @@ -38,9 +38,6 @@ | |||
| 38 | "/run/credentials/matrix-synapse.service/registration.yaml" | 38 | "/run/credentials/matrix-synapse.service/registration.yaml" |
| 39 | "/run/credentials/matrix-synapse.service/turn-secret.yaml" | 39 | "/run/credentials/matrix-synapse.service/turn-secret.yaml" |
| 40 | ]; | 40 | ]; |
| 41 | extraConfig = '' | ||
| 42 | default_identity_server: https://synapse.li | ||
| 43 | ''; | ||
| 44 | }; | 41 | }; |
| 45 | sops.secrets."matrix-synapse-registration.yaml" = { | 42 | sops.secrets."matrix-synapse-registration.yaml" = { |
| 46 | format = "binary"; | 43 | format = "binary"; |
| @@ -243,36 +240,5 @@ | |||
| 243 | owner = "turnserver"; | 240 | owner = "turnserver"; |
| 244 | group = "turnserver"; | 241 | group = "turnserver"; |
| 245 | }; | 242 | }; |
| 246 | |||
| 247 | services.mxisd = { | ||
| 248 | enable = true; | ||
| 249 | matrix.domain = "synapse.li"; | ||
| 250 | server = { | ||
| 251 | name = "localhost"; | ||
| 252 | port = 8090; | ||
| 253 | }; | ||
| 254 | extraConfig = { | ||
| 255 | matrix = { | ||
| 256 | v1 = true; | ||
| 257 | v2 = true; | ||
| 258 | }; | ||
| 259 | hashing = { | ||
| 260 | enabled = true; | ||
| 261 | rotationPolicy = "per_requests"; | ||
| 262 | hashStorageType = "sql"; | ||
| 263 | algorithms = ["sha256"]; | ||
| 264 | requests = 10; | ||
| 265 | }; | ||
| 266 | server.publicUrl = "https://synapse.li"; | ||
| 267 | storage = { | ||
| 268 | backend = "postgresql"; | ||
| 269 | provider.postgresql = { | ||
| 270 | database = "//file%3A%2F%2F%2Frun%2Fpostgresql%2F.s.PGSQL.5432/mxisd?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory%24URIScheme"; | ||
| 271 | }; | ||
| 272 | }; | ||
| 273 | forward.servers = ["matrix-org"]; | ||
| 274 | invite.resolution.recursive = false; | ||
| 275 | }; | ||
| 276 | }; | ||
| 277 | }; | 243 | }; |
| 278 | } | 244 | } |
