diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-03-06 18:57:02 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-03-06 20:06:02 +0530 |
commit | 485af822afb205f87b7d74cfbfc312c3bdd3ded3 (patch) | |
tree | 90cd4d99aea3188efb566aed61b7261ead362a49 | |
parent | ba7fec764066adf4a1beaa6df2b2e440d37f0366 (diff) |
kay/www: clean up
-rw-r--r-- | os/kay/modules/dns/sinanmohd.com.zone | 2 | ||||
-rw-r--r-- | os/kay/modules/www.nix | 18 |
2 files changed, 12 insertions, 8 deletions
diff --git a/os/kay/modules/dns/sinanmohd.com.zone b/os/kay/modules/dns/sinanmohd.com.zone index a1756de..c92dbdd 100644 --- a/os/kay/modules/dns/sinanmohd.com.zone +++ b/os/kay/modules/dns/sinanmohd.com.zone @@ -2,7 +2,7 @@ $ORIGIN sinanmohd.com. $TTL 2d @ IN SOA ns1 hostmaster ( - 2025022808 ; serial + 2025030608 ; serial 2h ; refresh 5m ; retry 1d ; expire diff --git a/os/kay/modules/www.nix b/os/kay/modules/www.nix index 98116e3..aa989ba 100644 --- a/os/kay/modules/www.nix +++ b/os/kay/modules/www.nix @@ -44,9 +44,9 @@ in globalRedirect = "www.${domain}"; extraConfig = '' - client_max_body_size ${toString - config.services.dendrite.settings.media_api.max_file_size_bytes - }; + proxy_buffering off; + proxy_request_buffering off; + client_max_body_size 0; ''; locations = { @@ -58,10 +58,11 @@ in 200 '${builtins.toJSON { "m.homeserver".base_url = "https://${domain}"; "org.matrix.msc3575.proxy".url = "https://${domain}"; + "m.identity_server".base_url = "https://vector.im"; }}' ''; - "/_matrix".proxyPass = "http://127.0.0.1:${toString + "~ ^(\\/_matrix|\\/_synapse\\/client)".proxyPass = "http://127.0.0.1:${toString config.services.dendrite.httpPort }"; @@ -87,7 +88,6 @@ in }; "home.${domain}" = defaultOpts // { - extraConfig = "proxy_buffering off;"; locations."/" = { proxyWebsockets = true; proxyPass = "http://127.0.0.1:${ @@ -97,7 +97,6 @@ in }; "mail.${domain}" = defaultOpts // { - extraConfig = "proxy_buffering off;"; locations."/" = { proxyWebsockets = true; proxyPass = "http://127.0.0.1:8085"; @@ -129,7 +128,12 @@ in }; "nixbin.${domain}" = defaultOpts // { - extraConfig = "proxy_buffering off;"; + extraConfig = '' + proxy_buffering off; + proxy_request_buffering off; + client_max_body_size 0; + ''; + locations = { "= /files".return = "301 https://nixbin.${domain}/files/"; "/files/" = { |