summaryrefslogtreecommitdiff
path: root/os/kay
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-02-27 11:21:38 +0530
committersinanmohd <sinan@sinanmohd.com>2025-02-27 11:21:38 +0530
commit4870446fdc08f066c124ffc148d274942f37b631 (patch)
treec11800083a1e4d07caf3896caf483193d5c73a92 /os/kay
parent8ceea2bef872df0b395e5900f490063bbfb60b12 (diff)
kay/www: expose /nix/store with HTTP for aws snapshot import
Diffstat (limited to 'os/kay')
-rw-r--r--os/kay/modules/www.nix6
1 files changed, 6 insertions, 0 deletions
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