tsuki/nginx: add vhost for experimental mutable bluemap setup

This commit is contained in:
2024-06-10 00:50:11 +02:00
parent a6c24b04a1
commit 73f527559e

View File

@@ -125,6 +125,16 @@
};
}
# (host ["www"] { root = "${inputs.website.packages.${pkgs.system}.default}/"; })
(host ["testmap"] {
root = "/var/lib/mcmap";
locations = {
"~* ^/maps/[^/]*/tiles/[^/]*.json$".extraConfig = ''
error_page 404 =200 /assets/emptyTile.json;
gzip_static always;
'';
"~* ^/maps/[^/]*/tiles/[^/]*.png$".tryFiles = "$uri =204";
};
})
(host ["www"] {
locations."/" = {
tryFiles = "$uri /index.html";