diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-03-09 23:06:42 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-03-09 23:06:44 +0530 |
commit | 16269416193b9e41417a27ecb9ef057e22691a5a (patch) | |
tree | 11502178c81c9eac687170780c9e216c37bc5717 /os/kay/modules/www.nix | |
parent | f566c923d860fb3612c99bf1915c9868e67e2109 (diff) |
kay/observability: init
Diffstat (limited to 'os/kay/modules/www.nix')
-rw-r--r-- | os/kay/modules/www.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/os/kay/modules/www.nix b/os/kay/modules/www.nix index e73b129..b62a017 100644 --- a/os/kay/modules/www.nix +++ b/os/kay/modules/www.nix @@ -82,6 +82,20 @@ in }; }; + "${config.services.grafana.settings.server.domain}" = defaultOpts // { + extraConfig = '' + proxy_buffering off; + proxy_request_buffering off; + client_max_body_size 0; + ''; + + locations."/" = { + proxyWebsockets = true; + proxyPass = + "http://${config.services.grafana.settings.server.http_addr}:${builtins.toString config.services.grafana.settings.server.http_port}"; + }; + }; + "www.${domain}" = defaultOpts // { root = "/var/www/${domain}"; }; |