init commit
This commit is contained in:
17
conf/app.ini
Normal file
17
conf/app.ini
Normal 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
22
conf/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user