<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### **配置說明** <br> ### 應用配置 ``config/app.js`` ``` // 項目配置文件 module.exports = { port: 5985, // 項目啟動端口 jwt_key: 'ThinkJS', // JWT加密的秘鑰 expiresIn: 60 * 60, // JWT過期時間 } ``` <br> ### 數據庫配置 ``config/database.js`` ``` // 數據庫配置文件 module.exports = { db: { host: '127.0.0.1', // 連接地址 port: 3306, // 端口 user: '', // 用戶名 password: '', // 密碼 database: '' // 數據庫名 } // 多個db可以指定多數據源,如:db2: {...} } ``` <br> ### Redis配置 ``config/redis.js`` ``` // redis配置 module.exports = { db: { host: '127.0.0.1', prot: 6379, db: 0 } // 多個db可以指定多數據源,如:db2: {...} } ``` <br> ### MongoDB配置 ``config/mongodb.js`` ``` // MongoDB配置 module.exports = { db: { host: '127.0.0.1', // 連接地址 port: 27017, // 端口 user: '', // 用戶名 password: '', // 密碼 database: '' // 數據庫名 } } ``` <br> ### ElasticSearch配置 ``config/elasticsearch.js`` ``` // ElasticSearch配置 module.exports = { db: { host: '127.0.0.1', prot: 9200 } } ``` <br> ### 微信相關配置 ``config/wx.js`` ``` const fs = require('fs') // 微信相關配置 module.exports = { // 公眾號 wechat: { appid: '', secret: '' }, // 小程序 miniProgram: { appid: '', secret: '' }, // 微信支付 wxpay: { mchid: '', // 商戶號 serial_no: '', // 證書序列號 key: '', // API秘鑰 public_key: fs.readFileSync('cert/wx_public_key.pem', 'utf8'), // 公鑰 private_key: fs.readFileSync('cert/wx_private_key.pem', 'utf8'), // 私鑰 notify_url: '', // 回調地址 } } ``` <br> ### 阿里相關配置 ``config/alicloud.js`` ``` const fs = require('fs') // 阿里云相關配置 module.exports = { accessKeyId: '', secretAccessKey: '', bucket: '', // 存儲空間 region: '', // 空間所在大區 // 支付寶支付相關配置 alipay: { appId: '', privateKey: fs.readFileSync('cert/ali_private_key.pem', 'ascii'), encryptKey: '', alipayRootCertPath: '', alipayPublicCertPath: '', appCertPath: '' } } ``` ### package.json ``` { "name": "think-js", "version": "1.1.0", "description": "This is a node framework based on koa2 encapsulation.", "main": "index.js", "_moduleAliases": { "@": "app", "@route": "route", "@config": "config", "@utils": "utils" }, "scripts": { "dev": "nodemon index.js", "start": "pm2 start index.js -i 3 --name='$npm_package_name'" }, "author": "zhangyu", "license": "ISC", "dependencies": { "@alicloud/sms-sdk": "^1.1.6", "ali-oss": "^6.17.1", "alipay-sdk": "^3.2.0", "child_process": "^1.0.2", "crypto": "^1.0.1", "elasticsearch": "^16.7.3", "figlet": "^1.5.2", "jsonwebtoken": "^8.5.1", "jsrsasign": "^10.5.12", "koa-body": "^4.2.0", "koa-router": "^10.1.1", "koa2": "^2.0.0-alpha.7", "log4js": "^6.4.2", "md5-node": "^1.0.1", "module-alias": "^2.2.2", "moment": "^2.29.1", "mongoose": "^6.2.4", "mysql": "^2.18.1", "node-fetch": "2.6.1", "nodemon": "^2.0.15", "redis": "3.1.2", "think-js-lib": "^1.1.0", "wxpay-v3": "^3.0.2" } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看