Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
e5c9407d
Commit
e5c9407d
authored
Feb 19, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config
parent
52b2d83b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
31 deletions
+37
-31
README.md
README.md
+4
-7
data/default_config.json
data/default_config.json
+30
-9
ygopro-pre.js
ygopro-pre.js
+1
-5
ygopro-tournament.js
ygopro-tournament.js
+1
-5
ygopro-update.js
ygopro-update.js
+1
-5
No files found.
README.md
View file @
e5c9407d
...
...
@@ -21,19 +21,16 @@
### 使用方法
*
可参考
[
wiki
](
https://github.com/mercury233/ygopro-server/wiki
)
安装
*
手动安装:
*
安装修改后的YGOPro服务端:https://github.com/moecube/ygopro/tree/server
*
`git clone https://github.com/moecube/srvpro.git`
*
`cd srvpro`
*
`npm install`
*
将
`config.json`
复制为
`config.user.json`
并进行修改
*
`port`
为你想要的端口
*
~~更多选项参见wiki~~
*
安装修改后的YGOPro服务端:https://github.com/moecube/ygopro/tree/server
*
`node ygopro-server.js`
即可运行
*
简易的控制台在 http://
mercury233.me/ygosrv233
/dashboard.html
*
简易的控制台在 http://
srvpro.ygo233.com
/dashboard.html
### 高级功能
*
待补充说明
*
简易的先行卡更新控制台在 http://
mercury233.me/ygosrv233
/pre-dashboard.html
*
简易的先行卡更新控制台在 http://
srvpro.ygo233.com
/pre-dashboard.html
### 开发计划
*
重做CTOS和STOC部分
...
...
@@ -64,7 +61,7 @@
### License
SRVPro
Copyright (C) 2013-201
7
MoeCube Team
Copyright (C) 2013-201
8
MoeCube Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
...
...
data/default_config.json
View file @
e5c9407d
{
"file"
:
"./config/config.json"
,
"port"
:
7911
,
"version"
:
49
24
,
"version"
:
49
30
,
"hostinfo"
:
{
"lflist"
:
0
,
"rule"
:
0
,
...
...
@@ -114,7 +114,9 @@
"cdn"
:
{
"enabled"
:
false
,
"exe"
:
"upx"
,
"params"
:
[
"sync"
],
"params"
:
[
"sync"
],
"local"
:
"./ygosrv233"
,
"remote"
:
"/ygosrv233"
,
"pics_remote"
:
"/ygopro/"
...
...
@@ -123,15 +125,22 @@
"only_show_dbs"
:
{
"news.cdb"
:
true
,
"pre-release.cdb"
:
true
},
},
"html_gits"
:
[
{
"name"
:
"GitHub"
,
"push"
:
[
"push"
,
"origin"
]
"push"
:
[
"push"
,
"origin"
]
},
{
"name"
:
"Coding"
,
"push"
:
[
"push"
,
"coding"
,
"master:master"
]
"push"
:
[
"push"
,
"coding"
,
"master:master"
]
}
]
},
...
...
@@ -145,11 +154,18 @@
"html_gits"
:
[
{
"name"
:
"GitHub"
,
"push"
:
[
"push"
,
"origin"
]
"push"
:
[
"push"
,
"origin"
]
},
{
"name"
:
"Coding"
,
"push"
:
[
"push"
,
"coding"
,
"master:master"
]
"push"
:
[
"push"
,
"coding"
,
"master:master"
]
}
]
},
...
...
@@ -172,7 +188,12 @@
"ban"
:
{
"banned_user"
:
[],
"banned_ip"
:
[],
"illegal_id"
:
[
"^Lv
\\
.-*
\\
d+
\\
s*(.*)"
,
"^VIP
\\
.
\\
d+
\\
s*(.*)"
],
"spam_word"
:
[
"——"
]
"illegal_id"
:
[
"^Lv
\\
.-*
\\
d+
\\
s*(.*)"
,
"^VIP
\\
.
\\
d+
\\
s*(.*)"
],
"spam_word"
:
[
"——"
]
}
}
\ No newline at end of file
ygopro-pre.js
View file @
e5c9407d
...
...
@@ -18,11 +18,7 @@ moment.locale('zh-cn');
var
constants
=
require
(
'
./data/constants.json
'
);
var
nconf
=
require
(
'
nconf
'
);
nconf
.
file
(
'
./config.user.json
'
);
var
defaultconfig
=
require
(
'
./config.json
'
);
nconf
.
defaults
(
defaultconfig
);
var
settings
=
nconf
.
get
();
var
settings
=
require
(
'
./config/config.json
'
);
config
=
settings
.
modules
.
pre_util
;
//全卡HTML列表
...
...
ygopro-tournament.js
View file @
e5c9407d
...
...
@@ -15,11 +15,7 @@ var _ = require('underscore');
_
.
str
=
require
(
'
underscore.string
'
);
_
.
mixin
(
_
.
str
.
exports
());
var
nconf
=
require
(
'
nconf
'
);
nconf
.
file
(
'
./config/config.json
'
);
var
defaultconfig
=
require
(
'
./data/default_config.json
'
);
nconf
.
defaults
(
defaultconfig
);
var
settings
=
nconf
.
get
();
var
settings
=
require
(
'
./config/config.json
'
);
config
=
settings
.
modules
.
tournament_mode
;
//http长连接
...
...
ygopro-update.js
View file @
e5c9407d
...
...
@@ -19,11 +19,7 @@ moment.locale('zh-cn');
var
constants
=
require
(
'
./data/constants.json
'
);
var
nconf
=
require
(
'
nconf
'
);
nconf
.
file
(
'
./config/config.json
'
);
var
defaultconfig
=
require
(
'
./data/default_config.json
'
);
nconf
.
defaults
(
defaultconfig
);
var
settings
=
nconf
.
get
();
var
settings
=
require
(
'
./config/config.json
'
);
config
=
settings
.
modules
.
update_util
;
//全卡名称列表
...
...
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