項目目錄劄記【附:config.json】

來源:互聯網
上載者:User

標籤:pre   添加   cto   dir   ops   ble   style   logs   檔案   

config.json:基礎設定檔

/* 該檔案用於生產環境,不要輕易修改該檔案,請修改development.json,修改相應的連接埠或配置*/{    /* begin 添加特殊的配置到裡面,比如mongo*/    // "mongoConfig": {    //     "host": "mongoDb",    //     "database": "xxx"    // },    /* end */    "restify": "http://restSE:8080",    "restifySec": "http://countSE:8080",    "cacheDir": "path:./cache",    "mongoConfig": {        "host": "mongoDb",        "database": "rbac" //修改    },    "log4jsConfig": "path:./config/log4js.json",    "envYHCG":"finance",//銀行存管    "express": {        "view engine": "ejs",        "view cache": true,        "views": "path:./site/views"    },    "qiniuConfig": {        "ACCESS_KEY": "H51ZLbLGMEBOL0Ut56CI7ZOPsOiE3lkWdriXawr6",        "SECRET_KEY": "Sf-Y_OzfCKtQCUgYZQ7AKTB0x8YsCkqb5ZYSXHIE",        "bucketname": "epb-pc"    },        "view engines": {        "ejs": {            "module": "ejs",            "renderer": "renderFile"        }    },    "middleware": {        "static": {            "module": {                "arguments": ["path:./public"]            }        },        "favicon": {            "module": {                "arguments": ["path:./public/favicon.ico"]            }        },        "logger": {            "enabled": false        },        "log4js": {            "enabled": true,            "priority": 51,            "module": {                "name": "kraken-middleware/lib/log-mid",                "arguments": [{                    "category": "http",                    "level": "auto"                }]            }        },        "cookieParser": {            "module": {                "arguments": ["6de5191ab3c401bcb266dff913"]            }        },        "session": {            "enabled": true,            "priority": 100,            "module": {                "name": "kraken-middleware/lib/redis-session",                "arguments": [{                    "secret": "6de5191ab3c401bcb266dff913",                    "cookie": {                        "path": "/",                        "httpOnly": true,                        "maxAge": 1800000                    },                    "resave": true,                    "rolling":true,                    "saveUninitialized": true                }, {                    "host": "redisDb",                    "port": 6379                }]            }        },        "appsec": {            "enabled": true,            "priority": 110,            "module": {                "name": "lusca",                "arguments": [{                    "csrf": true,                    "xframe": "SAMEORIGIN",                    "p3p": false,                    "csp": false                }]            }        },        "switchOption": {            "enabled": true,            "priority": 119,            "module": {                "name": "kraken-middleware/lib/switch",                "arguments": [{}]            }        },        "router": {            "enabled": true,            "priority": 120,            "module": {                "arguments": [{                    "directory": "path:./controllers"                }]            }        },        "fileNotFound": {            "enabled": true,            "priority": 130,            "module": {                "name": "kraken-js/middleware/404",                "arguments": ["error/404"]            }        },        "serverError": {            "enabled": true,            "priority": 140,            "module": {                "name": "kraken-js/middleware/500",                "arguments": ["error/500"]            }        }    }}

 

項目目錄劄記【附:config.json】

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.