mirror of
https://github.com/elyby/chrly.git
synced 2025-01-11 06:12:09 +05:30
Добавлена поддержка загрузки плащей, если есть одноимённый файл в директории
This commit is contained in:
parent
10be2a66ca
commit
796a2fcde8
2
cloaks/.gitignore
vendored
Normal file
2
cloaks/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
@ -16,8 +16,11 @@ location /minecraft.php {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /cloaks/ {
|
location /cloaks/ {
|
||||||
rewrite ^/cloaks/(.*)$ http://skins.minecraft.net/MinecraftCloaks/$1.png? permanent;
|
try_files $uri $uri.png @cloaks;
|
||||||
return 404;
|
}
|
||||||
|
|
||||||
|
location @cloaks {
|
||||||
|
rewrite ^/cloaks/(.+?)(\.[^.]*$|$)$ http://skins.minecraft.net/MinecraftCloaks/$1.png? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* ^/skins/$ {
|
location ~* ^/skins/$ {
|
||||||
@ -34,4 +37,4 @@ location ~* ^/cloaks/$ {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rewrite .* /cloaks/$arg_name permanent;
|
rewrite .* /cloaks/$arg_name permanent;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user