From cc857fdab393d3222add411e364af724cf2273eb Mon Sep 17 00:00:00 2001 From: Ittihadyya Date: Mon, 13 Jan 2025 18:22:49 +0200 Subject: [PATCH] i think matrix well-known is like hell --- apps.mod.nix | 1 + services/caddy/Caddyfile | 11 +++++++++-- services/social/conduwuit.mod.nix | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apps.mod.nix b/apps.mod.nix index 5cd2b82..d757bb5 100644 --- a/apps.mod.nix +++ b/apps.mod.nix @@ -54,6 +54,7 @@ vlc signal-desktop discord + element-desktop obsidian mumble # calibre # still borked apparently, what the hell # still!!! diff --git a/services/caddy/Caddyfile b/services/caddy/Caddyfile index 263f814..9703705 100644 --- a/services/caddy/Caddyfile +++ b/services/caddy/Caddyfile @@ -14,11 +14,18 @@ } } -https://collective-conciousness.monster { +https://collective-conciousness.monster, http://collective-conciousness.monster { encode zstd gzip header { Strict-Transport-Security "max-age=31536001; includeSubdomains; preload" } + #reverse_proxy /_matrix* 10.24.1.4:6167 + +# respond /.well-known* { +# body {"m.server":"extreme-mediumvolu.me:443"} +# close +# } + root * /var/www/public file_server { precompressed zstd br gzip @@ -57,6 +64,6 @@ https://grf.collective-conciousness.monster { } -http://matrix.collective-conciousness.monter, https://matrix.collective-conciousness.monster, matrix.collective-conciousness.monster, matrix.collective-conciousness.monster:8448 { +http://matrix.collective-conciousness.monster, https://matrix.collective-conciousness.monster, matrix.collective-conciousness.monster, matrix.collective-conciousness.monster:8448, collective-conciousness.monster:8448 { reverse_proxy 10.24.1.4:7893 } \ No newline at end of file diff --git a/services/social/conduwuit.mod.nix b/services/social/conduwuit.mod.nix index 8b523f9..230c8aa 100644 --- a/services/social/conduwuit.mod.nix +++ b/services/social/conduwuit.mod.nix @@ -13,6 +13,10 @@ max_request_size = 1024 * 1024 * 1024; address = ["0.0.0.0"]; port = [7893]; + well-known = { + client = "https://matrix.collective-conciousness.monster"; + server = "collective-conciousness.monster:8448"; + }; # database_path = lib.mkForce "/var/services/conduwuit/"; }; };