Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
71809217
提交
71809217
authored
3月 29, 2019
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sesssion 设置
上级
4d56478d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
config.js
server/config.js
+1
-1
ProxyMonitor.js
server/controller/ProxyMonitor.js
+1
-1
distRun.js
server/distRun.js
+2
-2
没有找到文件。
server/config.js
浏览文件 @
71809217
...
@@ -3,7 +3,7 @@ let conf = {}
...
@@ -3,7 +3,7 @@ let conf = {}
if
(
state
===
'test'
)
{
if
(
state
===
'test'
)
{
conf
.
agentApiUrl
=
'http://api.ezijing.com/'
conf
.
agentApiUrl
=
'http://api.ezijing.com/'
// conf.agentApiUrl = 'http://10.1.1.5:8024/'
// conf.agentApiUrl = 'http://10.1.1.5:8024/'
//
conf.agentApiUrl = 'http://192.168.3.254:8081'
conf
.
agentApiUrl
=
'http://192.168.3.254:8081'
}
else
if
(
state
===
'production'
)
{
}
else
if
(
state
===
'production'
)
{
conf
.
agentApiUrl
=
'http://api.ezijing.com/'
conf
.
agentApiUrl
=
'http://api.ezijing.com/'
}
}
...
...
server/controller/ProxyMonitor.js
浏览文件 @
71809217
...
@@ -38,7 +38,7 @@ const agentProcessor = () => {
...
@@ -38,7 +38,7 @@ const agentProcessor = () => {
try
{
try
{
options
=
{
options
=
{
timeout
:
30
*
1000
,
timeout
:
30
*
1000
,
url
:
req
.
params
[
0
]
,
// .replace(/tenant\//gi, '')
url
:
req
.
params
[
0
]
.
replace
(
/tenant
\/
/gi
,
''
),
//
baseURL
:
conf
.
agentApiUrl
,
baseURL
:
conf
.
agentApiUrl
,
method
:
req
.
method
,
method
:
req
.
method
,
data
:
req
.
body
,
data
:
req
.
body
,
...
...
server/distRun.js
浏览文件 @
71809217
...
@@ -12,9 +12,9 @@ let sessionOpts = {
...
@@ -12,9 +12,9 @@ let sessionOpts = {
// Forces a session that is "uninitialized" to be saved to the store.
// Forces a session that is "uninitialized" to be saved to the store.
saveUninitialized
:
true
,
saveUninitialized
:
true
,
// 设置会话cookie名, 默认是connect.sid
// 设置会话cookie名, 默认是connect.sid
key
:
'myapp_sid'
key
:
'myapp_sid'
,
// If secure is set to true, and you access your site over HTTP, the cookie will not be set.
// If secure is set to true, and you access your site over HTTP, the cookie will not be set.
// cookie: {
}
cookie
:
{
maxAge
:
1000
*
60
*
60
*
2
,
secure
:
false
}
}
}
app
.
set
(
'port'
,
process
.
env
.
SERVER_PORT
||
3000
)
app
.
set
(
'port'
,
process
.
env
.
SERVER_PORT
||
3000
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论