rabin 1 year ago
parent
commit
d2fd45d1b4
7 changed files with 0 additions and 328 deletions
  1. 0 1
      config/README.md
  2. 0 22
      config/env/localhost.php
  3. 0 62
      config/html/default.html
  4. 0 29
      config/lang/en.php
  5. 0 28
      config/lang/zh-cn.php
  6. 0 94
      config/setting.php
  7. 0 92
      config/web/plant.nginx.conf

+ 0 - 1
config/README.md

@@ -1 +0,0 @@
-这里的配置仅做参考

+ 0 - 22
config/env/localhost.php

@@ -1,22 +0,0 @@
-<?php
-return array
-(
-    'db' => array
-    (
-        'type' => 'Pdo',
-        'host' => 'web-mysql',
-        'port' => '3306',
-        'name' => 'dever2test',
-        'user' => 'root',
-        'pwd' => '123456',
-    ),
-    'db1' => array
-    (
-        'type' => 'Pdo',
-        'host' => 'web-mysql',
-        'port' => '3306',
-        'name' => 'dever2test2',
-        'user' => 'root',
-        'pwd' => '123456',
-    ),
-);

+ 0 - 62
config/html/default.html

@@ -1,62 +0,0 @@
-
-<!DOCTYPE html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-<title>无法打开页面-Dever</title>
-
-<style type="text/css">
-body,code,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}
-body{font:14px/1.5 'Microsoft YaHei','微软雅黑',Helvetica,Sans-serif;min-width:1200px;background:#f0f1f3;}
-:focus{outline:0}
-h1,h2,h3,h4,h5,h6,strong{font-weight:700}
-a{color:#428bca;text-decoration:none}
-a:hover{text-decoration:underline}
-.error-page{background:#f0f1f3;padding:80px 0 180px}
-.error-page-container{position:relative;z-index:1}
-.error-page-main{position:relative;background:#f9f9f9;margin:0 auto;width:617px;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:50px 50px 70px}
-.error-page-main:before{content:'';display:block;height:7px;position:absolute;top:-7px;width:100%;left:0}
-.error-page-main h3{font-size:24px;font-weight:400;border-bottom:1px solid #d0d0d0}
-.error-page-main h3 strong{font-size:54px;font-weight:400;margin-right:20px}
-.error-page-main h4{font-size:20px;font-weight:400;color:#333}
-.error-page-actions{font-size:0;z-index:100}
-.error-page-actions div{font-size:14px;display:inline-block;padding:30px 0 0 10px;width:50%;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#838383}
-.error-page-actions ol{list-style:decimal;padding-left:20px}
-.error-page-actions li{line-height:2.5em}
-.error-page-actions:before{content:'';display:block;position:absolute;z-index:-1;bottom:17px;left:50px;width:200px;height:10px;-moz-box-shadow:4px 5px 31px 11px #999;-webkit-box-shadow:4px 5px 31px 11px #999;box-shadow:4px 5px 31px 11px #999;-moz-transform:rotate(-4deg);-webkit-transform:rotate(-4deg);-ms-transform:rotate(-4deg);-o-transform:rotate(-4deg);transform:rotate(-4deg)}
-.error-page-actions:after{content:'';display:block;position:absolute;z-index:-1;bottom:17px;right:50px;width:200px;height:10px;-moz-box-shadow:4px 5px 31px 11px #999;-webkit-box-shadow:4px 5px 31px 11px #999;box-shadow:4px 5px 31px 11px #999;-moz-transform:rotate(4deg);-webkit-transform:rotate(4deg);-ms-transform:rotate(4deg);-o-transform:rotate(4deg);transform:rotate(4deg)}
-</style>
-
-</head>
-<body>
-
-<div class="error-page">
-    <div class="error-page-container">
-        <div class="error-page-main">
-            <h3>
-                <strong><?php echo $name?></strong><a href="javascript:;" title=<?php echo $html?>>无法打开页面</a>
-            </h3>
-            <div class="error-page-actions">
-                <div>
-                    <h4>可能原因:</h4>
-                    <ol>
-                        <li>网络信号差</li>
-                        <li>找不到请求的页面</li>
-                        <li>输入的网址不正确</li>
-                    </ol>
-                </div>
-                <div>
-                    <h4>可以尝试:</h4>
-                    <ul>
-                        <li><a href="<?php echo $host?>">返回首页</a></li>
-                        <li><a href="javascript:history.back(-1)">返回上一页</a></li>
-                        <li><a href="http://www.dever.cc/" target="_blank">到官网提出您的问题</a></li>
-                    </ul>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-
-</body>
-</html>

+ 0 - 29
config/lang/en.php

@@ -1,29 +0,0 @@
-<?php
-
-return array
-(
-	'error page' => 'Unable to open page',
-	'request tainting' => 'request_tainting',
-
-	'project not exists' => 'Project "{0}" does not exist',
-	'app not exists' => 'DeverApp {0} does not exist',
-	'route not exists' => 'Route does not exist',
-	'dom not exists' => 'DOM "{0}" does not exist',
-	'file not exists' => 'File "{0}" does not exist',
-	'class not exists' => 'Object "{0}" does not exist',
-	'path not exists' => 'Path "{0}" does not exist',
-	'method not exists' => 'Method {1} in {0} does not exist',
-
-	# api
-	'api not exists' => 'API "{0}" does not exist',
-	'api key not exists' => 'Configuration {0} in API does not exist',
-	'api param not exists' => 'Parameter does not exist',
-	'api signature not exists' => 'Signature verification error',
-	'api signature not repeat' => 'Please do not submit repeatedly',
-
-	# 数据库
-	'database not exists' => 'Database {0} does not exist',
-	'database config not exists' => 'Database configuration "{0}" does not exist',
-	'database error' => 'The parameter {0} is empty or does not match the rule:{1}',
-	'database maxlen' => '[{0}] cannot be longer than {1} characters',
-);

+ 0 - 28
config/lang/zh-cn.php

@@ -1,28 +0,0 @@
-<?php
-return array
-(
-	'error page' => '无法打开页面',
-	'request tainting' => 'request_tainting',
-
-	'project not exists' => '项目"{0}"不存在',
-	'app not exists' => '应用"{0}"不存在',
-	'route not exists' => '路由"{0}"不存在',
-	'dom not exists' => 'dom"{0}"不存在',
-	'file not exists' => '文件"{0}"不存在',
-	'class not exists' => '对象"{0}"不存在',
-	'path not exists' => '目录"{0}"不存在',
-	'method not exists' => '{0}中的方法{1}不存在',
-
-	# api
-	'api not exists' => 'api"{0}"不存在',
-	'api key not exists' => 'api中的配置{0}不存在',
-	'api param not exists' => 'api参数不存在',
-	'api signature not exists' => 'signature校验错误',
-	'api signature not repeat' => '请不要重复提交',
-
-	# 数据库
-	'database not exists' => '数据库{0}不存在',
-	'database config not exists' => '数据库配置{0}不存在',
-	'database error' => '参数{0}为空,或者不匹配该规则:{1}',
-	'database maxlen' => '[{0}]的长度不能超过{1}位字符',
-);

+ 0 - 94
config/setting.php

@@ -1,94 +0,0 @@
-<?php
-return array
-(
-    # 项目通信token
-    'token' => DEVER_PROJECT,
-    # 语言包 暂时无用
-    'lang' => 'zh-cn',
-    'lang_pack' => array('zh-cn' => '简体中文', 'en' => '英文'),
-
-    # 路由解析设置
-    'route' => false,
-    /*
-    'route' => array
-    (
-        'test' => 'home',
-        'v(.*?)_(.*?)' => 'src/home.test?type=$1&id=$2',
-    ),*/
-
-    # 日志设置
-    'log' => array('type' => 'file', 'host' => 'host', 'port' => 'port'),
-
-    # 调试的shell名
-    'shell' => 'debug',
-
-    # 定义session
-    //'session' => array('host' => '', 'port' => '', 'path' => '', 'cookie' => ''),
-
-    # 定义数据库
-    'database' => array
-    (
-        # sql优化,暂时无用
-        'opt' => true,
-        //'default' => array($env['db'], $env['db1'], 'type' => 'Pdo'),//读写分离
-        'default' => $env['db'],
-        'db1' => $env['db'],
-
-        # 分区设置 
-        'partition' => array
-        (
-            # 当前数据库是否支持自动建库,不支持改成false,则database不会自动建库,而是类似table按照表拆分
-            'create' => true,
-            # 类型:database 按照库拆分(分库) table 按照表拆分(分表) field 按照字段拆分(分区) where 按照条件拆分(分条件) Dever::session('database', 1)可以设置值
-            'database' => 'date("Y")',
-            'table' => 'date("Ym")',
-            # 字段类型分几种:range范围、list列表、hash哈希、key分区
-            'field' => array
-            (
-                'type' => 'range',
-                'field' => 'cdate', 
-                'value' => 'date("Y-m-d 23:60:60")'//date("Y-m-d 23:60:60", strtotime("-1 day"))'
-            ),
-            /*
-            'field' => array
-            (
-                'type' => 'list',
-                'field' => 'type', 
-                'value' => array('1', '2', '3'),//3个值3个分区,然后也可以用Dever::call("manage/admin.test")来返回数组
-            ),
-            'field' => array
-            (
-                'type' => 'hash',
-                'field' => 'id', 
-                'value' => '5'//5个分区
-            ),
-            'field' => array
-            (
-                'type' => 'key',
-                'field' => 'id', 
-                'value' => '5'
-            ),*/
-            # where类型,一般在表中设置array('id' => 1),
-            //'where' => 'Dever::call("manage/admin.test")'
-        ),
-    ),
-
-    # 定义模板
-    'template' => array
-    (
-        'name' => 'pc',//模板配置,如果有手机版,直接配置:'pc,mobile'
-        'replace' => array
-        (
-            '../' => '{$host}',
-        ),
-    ),
-    # 定义redis
-    //'redis' => array('host' => 'server-redis', 'port' => '6379', 'password' => 'dm_redis_123', 'expire' => 3600),
-    
-    # 根据api增加缓存
-    /*
-    'cache' => array
-    (
-        'set/home.test' => 3000,
-    ),*/
-);

+ 0 - 92
config/web/plant.nginx.conf

@@ -1,92 +0,0 @@
-server {
-    server_name yubin.bid www.yubin.bid manage.yubin.bid forum.yubin.bid passport.yubin.bid upload.yubin.bid;
-
-    listen 80;
-
-    autoindex on;
-
-    set $charset utf-8;
-
-    charset $charset;
-
-    set $rootdir /data/web/yubin.bid/web/application/plant;
-    set $project www;
-
-    if ( $host ~* "^([^\.]+)\.yubin\.bid" ) {
-        set $project $1;
-    }
-
-    if ( $project ~* www ) {
-        set $project main;
-    }
-
-    set $rewrite yes;
-
-    if ( $request_uri ~* (assets\/|crossdomain\.xml) ) {
-        set $rewrite no;
-        set $rootdir /data/web/yubin.bid/web/package;
-    }
-
-    set $rootdir $rootdir/$project;
-    root $rootdir;
-    index index.php index.html;
-
-
-    if ($rewrite ~* yes) {
-        rewrite ^/(.*) /index.php/$1 last;
-    }
-
-    location ~ /(assets\/|crossdomain\.xml)
-    {
-        try_files $uri $uri/ /index.html;
-    }
-
-
-    location / {
-        fastcgi_split_path_info ^(.+\.php)(/.+)$;
-        # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
-
-        # With php5-cgi alone:
-        #fastcgi_pass 127.0.0.1:9000;
-        # With php5-fpm:
-        fastcgi_pass unix:/var/run/php5-fpm.sock;
-        fastcgi_index index.php;
-        include fastcgi_params;
-    }
-}
-
-
-server {
-    server_name file.yubin.bid assets.yubin.bid;
-
-    listen 80;
-
-    autoindex on;
-
-    set $charset utf-8;
-
-    charset $charset;
-
-    set $rootdir /data/web/yubin.bid/web/data;
-    set $project upload;
-
-    if ( $host ~* "^([^\.]+)\.yubin\.bid" ) {
-        set $project $1;
-    }
-
-    if ( $project ~* file ) {
-        set $project upload;
-    }
-
-    set $rootdir $rootdir/$project;
-    root $rootdir;
-    index index.html;
-    location / {
-                # First attempt to serve request as file, then
-                # as directory, then fall back to displaying a 404.
-                try_files $uri $uri/ =404;
-                # Uncomment to enable naxsi on this location
-                # include /etc/nginx/naxsi.rules
-    }
-
-}