tsuki/nginx: fix minecraft map hosting
This commit is contained in:
parent
ec628240b0
commit
45c51639ca
@ -144,11 +144,12 @@
|
||||
(host ["testmap"] {
|
||||
root = "/var/lib/mcmap";
|
||||
locations = {
|
||||
"~* ^/maps/[^/]*/tiles/[^/]*.json$".extraConfig = ''
|
||||
error_page 404 =200 /assets/emptyTile.json;
|
||||
"@empty".return = "204";
|
||||
|
||||
"~* ^/maps/[^/]*/tiles/".extraConfig = ''
|
||||
error_page 404 = @empty;
|
||||
gzip_static always;
|
||||
'';
|
||||
"~* ^/maps/[^/]*/tiles/[^/]*.png$".tryFiles = "$uri =204";
|
||||
};
|
||||
})
|
||||
(host ["www"] {
|
||||
|
Loading…
Reference in New Issue
Block a user