From 7029201a1444d2e538ededc6762d5d81f14c7ad3 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 9 May 2025 13:37:49 +0530 Subject: os/kay/alina: init --- os/kay/modules/www.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'os/kay/modules/www.nix') diff --git a/os/kay/modules/www.nix b/os/kay/modules/www.nix index 3903396..39e5b4b 100644 --- a/os/kay/modules/www.nix +++ b/os/kay/modules/www.nix @@ -226,6 +226,31 @@ in }"; }; }; + + + "www.alinafs.com" = defaultOpts // { + useACMEHost = null; + enableACME = true; + globalRedirect = "alinafs.com/home"; + }; + "alinafs.com" = defaultOpts // { + useACMEHost = null; + enableACME = true; + + locations = { + "/metrics".return = "307 /home/"; + "/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:${builtins.toString config.services.alina.port}"; + }; + }; + + extraConfig = '' + proxy_buffering off; + proxy_request_buffering off; + client_max_body_size 0; + ''; + }; }; }; } -- cgit v1.2.3