Chevereto 是一个国外著名的图床程序,基本提到图床,大家都会先想起来 Chevereto。Chevereto 分为免费版和付费版本,基本来说免费版是够用的,付费版只是比免费版多了几个非必须的功能。今天来介绍一下免费版的搭建教程。
通过宝塔面板,基于Chevereto图床搭建起来的,功能还是挺丰富的。
搭建步骤
1.进入Chevereto官方网站下载安装的压缩包,链接:Chevereto官方网站

2.宝塔中新建站点,填写域名(也可以使用IP地址)

4.解压下载的Chevereto压缩包,将里面的目录上传到站点的目录中
注意:站点创建后,目录中会默认存在4个文件,需要全部删除

4. 修改站点配置文件,在最后一个}前添加下面代码
# Disable access to .ht* files
location ~ /\.ht {
deny all;
}
# Disable access to sensitive files in app path
location ~ /(app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}
# Disable log on not found images + image replacement
location ~* (jpe?g|png|gif) {
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?$query_string;
}

5.访问注册站点的IP地址或域名,根据提示的安装即可。