diff options
author | tdback <tyler@tdback.net> | 2025-01-26 11:34:28 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-26 11:34:28 -0500 |
commit | 99e940770b61db350379d692df7cf3831ef4bd92 (patch) | |
tree | d927d171b483b9ae07de4ab615f250edf25e535a /modules/services/web | |
parent | bc7b54af5193f8ac7333ce3f27f414f9a69a80c0 (diff) |
services: major overhaul on service modules
Diffstat (limited to 'modules/services/web')
-rw-r--r-- | modules/services/web/default.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/modules/services/web/default.nix b/modules/services/web/default.nix deleted file mode 100644 index 0a7b392..0000000 --- a/modules/services/web/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, ... }: -let - fqdn = "synapse.${config.networking.domain}"; - baseUrl = "https://${fqdn}"; -in -{ - networking.domain = "tdback.net"; - networking.firewall.allowedTCPPorts = [ - 80 - 443 - ]; - - services.caddy = { - enable = true; - virtualHosts = { - ${config.networking.domain}.extraConfig = '' - handle /.well-known/matrix/server { - header Content-Type application/json - header Access-Control-Allow-Origin * - respond `{"m.server": "${fqdn}:443"}` - } - - handle /.well-known/matrix/client { - header Content-Type application/json - header Access-Control-Allow-Origin * - respond `{"m.homeserver": {"base_url": "${baseUrl}"}}` - } - - root * /var/www/tdback.net/ - encode zstd gzip - file_server - ''; - }; - }; -} |