config.local.js 1.4 KB
/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2020-06-28 15:34:13
 * @LastEditors: genglw
 * @LastEditTime: 2022-08-30 20:30:09
 */

// # local config (make sure it is ignored by git)
//
// This configuration file is specific to each developer's environment,
// and will merge on top of all other settings from ./config.js
// (but only will merge in development environment)
//
var maxAge = 60 * 60 * 1000 * 25;
exports = module.exports = function () {
	return {
		cache: false,
		server: {
			host: "0.0.0.0",
			port: 3000,
		},
		email: {
			// <https://github.com/andris9/Nodemailer>
			transport: {
				service: "gmail",
				auth: {
					user: "user@gmail.com",
					pass: "abc123",
				},
			},
		},
		restful: {
			url: 'http://47.110.250.177:9201/',
			// url: 'http://47.110.250.177:7002/',
			ossUrl: 'http://47.110.250.177:7003/',
			version: '/v1',
			host: '47.110.250.177',
			// port: 7002,
			port: 9201,
		},
		excellentRestful: {
			url: "http://47.110.250.177:8000/",
			version: "/v1",
			host: "47.110.250.177",
			port: 8000,
		},
		csrf: {
			enabled: false,
			options: {
				cookie: {
					maxAge: maxAge,
					key: "_csrf",
					path: "/",
					httpOnly: true,
					sameSite: "strict",
				},
				ignoreMethods: ["HEAD", "OPTIONS", "GET"],
			},
		},
		output: {
			level: 'debug', 
			colorize: true,
			prettyPrint: true
		},
		liveReload: {
			enabled: true,
			port: 35729,
		},
	};
};

exports['@singleton'] = true;