1
0

init commit

This commit is contained in:
2021-05-13 11:35:49 +08:00
commit a2db70af8b
18 changed files with 541 additions and 0 deletions

17
conf/app.ini Normal file
View File

@@ -0,0 +1,17 @@
[common]
application.directory = APP_PATH "/app"
application.modules = "Admin"
application.dispatcher.throwException = True
application.dispatcher.catchException = True
application.view.ext = "tpl"
[smarty]
smarty.left_delimiter = "{% "
smarty.right_delimiter = " %}"
smarty.template_dir = APP_PATH "/view/"
smarty.compile_dir = APP_PATH "/cache/compile"
smarty.cache_dir = APP_PATH "/cache/"
[product : common : smarty]
[development : common : smarty]

22
conf/nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
server {
listen 80;
server_name yaf.lvh.me;
access_log /var/log/nginx/yafcms.access.log;
error_log /var/log/nginx/yafcms.error.log;
root /var/www/yaf_cms/public;
index index.php;
charset utf-8;
location ~ .*\.php(\/.*)*$ {
include snippets/fastcgi-php.conf;
# 设置监听端口
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
if (!-e $request_filename) {
rewrite ^/(.*) /index.php/$1 last;
}
}