Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
config_repository
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
config_repository
Commits
47f1eb95
Commit
47f1eb95
authored
Jul 03, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activity-op config
parent
ee502baf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
activity-op.js
tke/nodejs/activity-op.js
+34
-0
replace.py
yaml/replace.py
+1
-1
No files found.
tke/nodejs/activity-op.js
0 → 100644
View file @
47f1eb95
const
path
=
require
(
'
path
'
);
const
logDir
=
path
.
resolve
(
process
.
cwd
(),
'
../logs
'
)
module
.
exports
=
{
port
:
'
80
'
,
// mongodb
db
:
'
activity
'
,
dbIp
:
'
192.168.4.50
'
,
dbPort
:
'
27017
'
,
dbUser
:
''
,
dbPass
:
''
,
// qiniu
domain
:
'
http://activity-op.domain.com
'
,
ACCESS_KEY
:
'
QyjX3i2tEMvrv50j6M_wpb9YoFJbxSm3jEkOj9lY
'
,
SECRET_KEY
:
'
uoMTzRLoElTAKXVzelGgTvI652zJ8bCz_qqTtoGl
'
,
BUCKET
:
'
activity-test
'
,
// log4js
log4js
:
{
appenders
:
{
app
:
{
type
:
'
dateFile
'
,
filename
:
logDir
+
'
/activity-op.log
'
,
daysToKeep
:
3
,
compress
:
true
},
error
:
{
type
:
'
dateFile
'
,
filename
:
logDir
+
'
/activity-op.error.log
'
,
daysToKeep
:
3
,
compress
:
true
},
just_errors
:
{
type
:
'
logLevelFilter
'
,
appender
:
'
error
'
,
level
:
'
error
'
}
},
categories
:
{
default
:
{
appenders
:
[
'
app
'
,
'
just_errors
'
],
level
:
'
info
'
}
}
},
// API
APP_API
:
'
http://sappbackend.domain.com
'
,
XYQB_API
:
'
http://api.domain.com
'
,
REDPACKET_API
:
'
http://redpacket.domain.com
'
,
MEMBER_API
:
'
http://member.domain.com
'
}
yaml/replace.py
View file @
47f1eb95
...
@@ -63,7 +63,7 @@ for file in files:
...
@@ -63,7 +63,7 @@ for file in files:
for
line
in
fileinput
.
input
(
file
,
inplace
=
1
):
for
line
in
fileinput
.
input
(
file
,
inplace
=
1
):
for
item
in
config
:
for
item
in
config
:
rule
=
copy
.
deepcopy
(
item
[
1
])
rule
=
copy
.
deepcopy
(
item
[
1
])
if
rule
.
get
(
'useNamespace'
,
None
)
and
rule
[
'to'
]:
if
rule
.
get
(
'useNamespace'
,
None
)
and
rule
[
'to'
]:
rule
[
'to'
]
=
'-'
+
namespace
+
rule
[
'to'
]
rule
[
'to'
]
=
'-'
+
namespace
+
rule
[
'to'
]
if
rule
.
get
(
'useHost'
,
None
):
if
rule
.
get
(
'useHost'
,
None
):
...
...
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