mirror of
				https://github.com/elyby/chrly.git
				synced 2025-05-31 14:11:51 +05:30 
			
		
		
		
	Добавлена поддержка загрузки плащей, если есть одноимённый файл в директории
This commit is contained in:
		
							
								
								
									
										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;
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user