From 4870446fdc08f066c124ffc148d274942f37b631 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 27 Feb 2025 11:21:38 +0530 Subject: kay/www: expose /nix/store with HTTP for aws snapshot import --- os/kay/modules/www.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'os/kay/modules/www.nix') diff --git a/os/kay/modules/www.nix b/os/kay/modules/www.nix index 5246d65..2500222 100644 --- a/os/kay/modules/www.nix +++ b/os/kay/modules/www.nix @@ -118,6 +118,12 @@ in "nixbin.${domain}" = defaultOpts // { extraConfig = "proxy_buffering off;"; locations = { + "= /files".return = "301 https://nixbin.${domain}/files/"; + "/files/" = { + alias = "/nix/store/"; + extraConfig = "autoindex on;"; + }; + "= /" = { extraConfig = "add_header Content-Type text/html;"; return = ''200 -- cgit v1.2.3