feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
30
api.hyungi.net/node_modules/@pm2/agent/config.js
generated
vendored
Normal file
30
api.hyungi.net/node_modules/@pm2/agent/config.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict'
|
||||
|
||||
/**
|
||||
* Convert value to boolean but false if undefined
|
||||
* @param {String} value
|
||||
* @param {String} fallback default value
|
||||
* @return {Boolean}
|
||||
*/
|
||||
const useIfDefined = (value, fallback) => {
|
||||
if (typeof value === 'undefined') {
|
||||
return fallback
|
||||
} else {
|
||||
return value === 'true'
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuration for transporters
|
||||
* Configuration by transporter :
|
||||
* @param {Integer} enabled
|
||||
* @param {Object|String} endpoints sended as first arg with connect() method
|
||||
*/
|
||||
module.exports = {
|
||||
transporters: {
|
||||
websocket: {
|
||||
enabled: true, // useIfDefined(process.env.AGENT_TRANSPORT_WEBSOCKET, true),
|
||||
endpoints: process.env.AGENT_WEBSOCKET_ENDPOINT || 'ws'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user