tsuki/nginx: fix minecraft map hosting

This commit is contained in:
Oystein Kristoffer Tveit 2024-11-28 16:34:43 +01:00
parent ec628240b0
commit 45c51639ca
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -144,11 +144,12 @@
(host ["testmap"] { (host ["testmap"] {
root = "/var/lib/mcmap"; root = "/var/lib/mcmap";
locations = { locations = {
"~* ^/maps/[^/]*/tiles/[^/]*.json$".extraConfig = '' "@empty".return = "204";
error_page 404 =200 /assets/emptyTile.json;
"~* ^/maps/[^/]*/tiles/".extraConfig = ''
error_page 404 = @empty;
gzip_static always; gzip_static always;
''; '';
"~* ^/maps/[^/]*/tiles/[^/]*.png$".tryFiles = "$uri =204";
}; };
}) })
(host ["www"] { (host ["www"] {