mirror of
https://github.com/elyby/chrly.git
synced 2024-12-31 17:30:16 +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/ {
|
||||
rewrite ^/cloaks/(.*)$ http://skins.minecraft.net/MinecraftCloaks/$1.png? permanent;
|
||||
return 404;
|
||||
try_files $uri $uri.png @cloaks;
|
||||
}
|
||||
|
||||
location @cloaks {
|
||||
rewrite ^/cloaks/(.+?)(\.[^.]*$|$)$ http://skins.minecraft.net/MinecraftCloaks/$1.png? permanent;
|
||||
}
|
||||
|
||||
location ~* ^/skins/$ {
|
||||
@ -34,4 +37,4 @@ location ~* ^/cloaks/$ {
|
||||
}
|
||||
|
||||
rewrite .* /cloaks/$arg_name permanent;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user