mirror of
https://github.com/elyby/chrly.git
synced 2024-12-24 05:59:54 +05:30
Добавлен необходимый конфиг nginx
This commit is contained in:
parent
af2eebfc1e
commit
de135921c4
37
nginx.conf
Normal file
37
nginx.conf
Normal file
@ -0,0 +1,37 @@
|
||||
location /minecraft.php {
|
||||
if ($arg_name = "") {
|
||||
return 400;
|
||||
}
|
||||
|
||||
if ($arg_type = "cloack") {
|
||||
rewrite .* http://skins.minecraft.net/MinecraftCloaks/$arg_name.png? permanent;
|
||||
break;
|
||||
}
|
||||
|
||||
if ($arg_type = "skin") {
|
||||
rewrite .* /skins/$arg_name last;
|
||||
}
|
||||
|
||||
return 404;
|
||||
}
|
||||
|
||||
location /cloaks/ {
|
||||
rewrite ^/cloaks/(.*)$ http://skins.minecraft.net/MinecraftCloaks/$1.png? permanent;
|
||||
return 404;
|
||||
}
|
||||
|
||||
location ~* ^/skins/$ {
|
||||
if ($arg_name = "") {
|
||||
return 400;
|
||||
}
|
||||
|
||||
rewrite .* /skins/$arg_name permanent;
|
||||
}
|
||||
|
||||
location ~* ^/cloaks/$ {
|
||||
if ($arg_name = "") {
|
||||
return 400;
|
||||
}
|
||||
|
||||
rewrite .* /cloaks/$arg_name permanent;
|
||||
}
|
Loading…
Reference in New Issue
Block a user