tsuki/nginx: fix minecraft map hosting
This commit is contained in:
parent
ec628240b0
commit
45c51639ca
@ -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"] {
|
||||||
|
Loading…
Reference in New Issue
Block a user