/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2020-06-28 15:34:13
 * @LastEditors: genglw
 * @LastEditTime: 2021-12-23 14:56:59
 */

// # 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://118.178.181.180:20000/',
			// url: 'http://47.110.250.177:20000/',
			url: 'http://47.110.158.110:20000/',
			// url:'http://120.27.220.60:20000/',
			// url: 'http://39.104.52.206:20000/',
			// url: 'http://47.99.189.12:20000/',
			ossUrl: 'http://47.110.250.177:20000/',
			version: '/v1',
			// host: '47.110.250.177',
			host: '47.110.158.110',
			// host: '120.27.220.60',
			// host: '39.104.52.206', 
			port: 20000
		},
		csrf: {
			enabled: true,
			options: {
				cookie: {
					maxAge: maxAge,
					key: '_csrf',
					path: '/',
					httpOnly: true,
					sameSite: 'strict',
				},
				ignoreMethods: ['HEAD', 'OPTIONS', 'GET']
			}
		},
		liveReload: {
			enabled: true,
			port: 35729
		}
	};
};

exports['@singleton'] = true;