Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
89468a85
Commit
89468a85
authored
May 27, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del localsettings.js
parent
f842e754
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
40 deletions
+17
-40
ic-deliver/.gitignore
+2
-0
ic-deliver/app/base/service/sve.base.js
+8
-8
ic-deliver/app/config/localsettings.js
+0
-31
ic-deliver/app/config/settings.js
+7
-1
ic-deliver/package-lock.json
+0
-0
No files found.
ic-deliver/.gitignore
View file @
89468a85
node_modules/
app/config/localsettings.js
\ No newline at end of file
ic-deliver/app/base/service/sve.base.js
View file @
89468a85
...
...
@@ -173,28 +173,28 @@ class ServiceBase {
}
}
static
bindPluginUrl
(
rname
){
return
settings
.
kongurl
+
"routes/"
+
rname
+
"/plugins"
;
return
settings
.
kongurl
()
+
"routes/"
+
rname
+
"/plugins"
;
}
static
newRouteUrl
(
sname
){
return
settings
.
kongurl
+
"services/"
+
sname
+
"/routes"
;
return
settings
.
kongurl
()
+
"services/"
+
sname
+
"/routes"
;
}
static
newServiceUrl
(){
return
settings
.
kongurl
+
"services"
;
return
settings
.
kongurl
()
+
"services"
;
}
static
newConsumerUrl
(){
return
settings
.
kongurl
+
"consumers"
;
return
settings
.
kongurl
()
+
"consumers"
;
}
static
newJwtCredUrl
(
consumername
){
return
settings
.
kongurl
+
"consumers/"
+
consumername
+
"/jwt"
;
return
settings
.
kongurl
()
+
"consumers/"
+
consumername
+
"/jwt"
;
}
static
serviceUrl
(
sname
){
return
settings
.
kongurl
+
"services/"
+
sname
;
return
settings
.
kongurl
()
+
"services/"
+
sname
;
}
static
routeUrl
(
rname
){
return
settings
.
kongurl
+
"routes/"
+
rname
;
return
settings
.
kongurl
()
+
"routes/"
+
rname
;
}
static
consumerUrl
(
consumerName
){
return
settings
.
kongurl
+
"consumers/"
+
consumerName
;
return
settings
.
kongurl
()
+
"consumers/"
+
consumerName
;
}
}
module
.
exports
=
ServiceBase
;
ic-deliver/app/config/localsettings.js
deleted
100644 → 0
View file @
f842e754
var
settings
=
{
redis
:
{
host
:
"43.247.184.32"
,
port
:
8967
,
password
:
"Gongsibao2018"
,
db
:
9
,
},
database
:
{
dbname
:
"ent_deliver"
,
user
:
"root"
,
password
:
"123456"
,
config
:
{
host
:
'127.0.0.1'
,
port
:
3306
,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
pool
:
{
max
:
5
,
min
:
0
,
acquire
:
90000000
,
idle
:
1000000
},
debug
:
false
,
dialectOptions
:
{
requestTimeout
:
999999
,
// instanceName:'DEV'
}
//设置MSSQL超时时间
}
},
};
module
.
exports
=
settings
;
ic-deliver/app/config/settings.js
View file @
89468a85
...
...
@@ -17,7 +17,13 @@ var settings = {
defaultpwd
:
"gsb2020"
,
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
8002
,
kongurl
:
"http://192.168.4.119:8001/"
,
kongurl
:
function
(){
if
(
this
.
env
==
"dev"
){
return
localsettings
.
kongurl
;
}
else
{
return
ENVINPUT
.
KONG_ADMIAN
;
}
},
pmappid
:
1
,
pmcompanyid
:
1
,
pmroleid
:{
"ta"
:
1
,
"pr"
:
2
},
...
...
ic-deliver/package-lock.json
deleted
100644 → 0
View file @
f842e754
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment