Chevereto -强大好用的图床程序 v3.20.17

安装​

环境要求:Apache/Nginx、PHP 5.5+、MySQL 5.0+

伪静态​

# 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;
}

资源链接留言获取或者发邮件给我。

 

版权声明:
作者:admin
链接:https://www.shennong.date/?p=981
来源:北冥有鱼
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录