yaf-cms-backoffice
a simple cms backoffice by yaf & easyui. Base project for expansions.
部署环境
推荐使用OpenResty,方便使用luajit
PHP扩展
- Yaf
- Redis
模板框架
easyUI + Vue
CDN
七牛cdn, 上传文件、图片使用
Vendor
{
"require": {
"qiniu/php-sdk": "^7.1",
"illuminate/database":"~4.2",
"phpunit/phpunit": "^6.5"
}
}
配置文件
nginx配置
server {
listen 80;
server_name www.yafcms.com;
root /home/webroot/yafcms/public;
index index.html index.php;
lua_code_cache off;
location / {
include php.conf;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?$1 last;
break;
}
}
location ~ ^/lapi/([-_a-zA-Z0-9/]+) {
default_type 'text/html';
set $path $1;
content_by_lua_file /home/webroot/yafcms/lua/$path.lua;
}
location ~ .*\.(jpg|png|js|css|gif|jpeg|ttf|woff)
{
expires 3s;
access_log off;
}
error_log /home/logs/error.log;
access_log /home/logs/yafcms.log access;
}
访问路径 ===================================