a simple cms backoffice by yaf & easyui. Base project for expansions.
推荐使用OpenResty,方便使用luajit
- Yaf
- Redis
easyUI + Vue
七牛cdn, 上传文件、图片使用
{
"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;
}
访问路径 ===================================