网站首页php
基于Yaf框架的类cms后台管理程序,用于定制开发扩展的内核
发布时间:2017-10-13 03:15:37编辑:slayer.hover阅读(4036)
Yaf
Yar
Redis
代码已上传至github: https://github.com/slayerhover/yaf-cms-backoffice
Yaf(内聚easyUI模板,laravel数据库操作Eloquent,RPC服务Yar,Nosql Redis),适合作开发平台扩展使用。
部署环境
推荐使用OpenResty,方便使用luajit
PHP扩展
后台模板框架
easyUI
CDN
七牛cdn, 上传文件、图片使用
Vendor
laravel Eloquent
配置文件
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;
}访问路径 ===================================
评论