开始您自己的图像托管网站,其中包含世界一流的功能。完全没有限制!释放自己,用它来做任何你想做的事情。根据您认为合适的方式进行自定义,因为它完全属于您!
安装
环境要求:Apache/Nginx、PHP 5.5+、MySQL 5.0+
伪静态
NGINX:
# Chevereto Nginx rewrite rules
location ~ /\.ht {
deny all;
}
# Disable access to sensitive files in app path
location ~ /(app|content|lib|importer)/.*\.(po|php|lock|sql|txt)$ {
deny all;
}
# Disable log on not found images + image replacement
location ~* (jpe?g|png|gif|webp) {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}
# Enable CORS header (needed for CDN)
location ~* \.(ttf|ttc|otf|eot|woff|woff2|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}
# Force serve upload path as static content (match your upload folder if needed)
location /images {}
# Route dynamic request to index.php
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}