Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server-monitor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
server-monitor
Commits
8a197259
There was an error fetching the commit references. Please try again later.
Verified
Commit
8a197259
authored
5 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
a7884e2c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
datafile_gen_daemon_conf.py
+3
-1
3 additions, 1 deletion
datafile_gen_daemon_conf.py
do.bash
+14
-7
14 additions, 7 deletions
do.bash
with
17 additions
and
8 deletions
datafile_gen_daemon_conf.py
+
3
−
1
View file @
8a197259
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
tests
=
[
tests
=
[
(
'
./do.bash rproxy
'
,
'
Reverse Proxy
'
),
(
'
./do.bash rproxy
'
,
'
Reverse Proxy
'
),
(
'
./do.bash drive
'
,
'
Drive
'
),
(
'
./do.bash drive
'
,
'
Drive
'
),
(
'
./do.bash ss-tw
'
,
'
ShadowSocks taiwan
'
),
(
'
./do.bash ssr-tw
'
,
'
ShadowSocksR taiwan
'
),
(
'
./do.bash ssr-hk
'
,
'
ShadowSocksR HongKong
'
),
(
'
./do.bash frp-hk
'
,
'
FRPS HongKong
'
),
(
'
./do.bash ss-us1
'
,
'
ShadowSocks US-1
'
),
(
'
./do.bash ss-us1
'
,
'
ShadowSocks US-1
'
),
(
'
./do.bash ss-us5
'
,
'
ShadowSocks US-5
'
),
(
'
./do.bash ss-us5
'
,
'
ShadowSocks US-5
'
),
(
'
./do.bash ss-us6
'
,
'
ShadowSocks US-6
'
),
(
'
./do.bash ss-us6
'
,
'
ShadowSocks US-6
'
),
...
...
This diff is collapsed.
Click to expand it.
do.bash
+
14
−
7
View file @
8a197259
#!/bin/bash
#!/bin/bash
[[
$1
==
''
]]
&&
echo
-e
'Usage: '
"
$0
<operation> ...
\n
operation := rproxy | drive | ss-tw | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | all"
&&
exit
1
[[
$1
==
''
]]
&&
echo
-e
'Usage: '
"
$0
<operation> ...
\n
operation := rproxy | drive | ss
r
-tw |
ssr-hk | frp-hk |
ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | all"
&&
exit
1
function
confirm_alive
()
{
function
confirm_alive
()
{
local
host
=
"
$1
"
local
host
=
"
$1
"
...
@@ -39,11 +39,16 @@ function do_test () {
...
@@ -39,11 +39,16 @@ function do_test () {
;;
;;
drive
)
drive
)
confirm_alive drive.recolic.net
&&
confirm_alive drive.recolic.net
&&
curl
-s
https://drive.recolic.net/index.php/login |
grep
'submit-wrapper'
||
return
$?
curl
-s
https://drive.recolic.net
:444
/index.php/login |
grep
'submit-wrapper'
||
return
$?
;;
;;
ss-tw
)
ssr-tw
)
confirm_alive nohsts.tw1.recolic.org
&&
test_tcp base.tw1.recolic.net 465
||
return
$?
test_ss base.tw1.recolic.net
||
return
$?
;;
ssr-hk
)
test_tcp base.hk1.recolic.net 467
||
return
$?
;;
frp-hk
)
test_tcp base.hk1.recolic.net 30999
||
return
$?
;;
;;
ss-us1
)
ss-us1
)
test_ss base.us1.recolic.net
||
return
$?
test_ss base.us1.recolic.net
||
return
$?
...
@@ -140,7 +145,7 @@ function do_test () {
...
@@ -140,7 +145,7 @@ function do_test () {
;;
;;
rocket
)
rocket
)
confirm_alive rocket.recolic.net
&&
confirm_alive rocket.recolic.net
&&
curl
-s
https://rocket.recolic.net/api/info |
grep
'success":true'
||
return
$?
curl
-s
https://rocket.recolic.net
:444
/api/info |
grep
'success":true'
||
return
$?
;;
;;
esac
esac
}
}
...
@@ -153,7 +158,9 @@ function do_test_twice () {
...
@@ -153,7 +158,9 @@ function do_test_twice () {
if
[[
"
$1
"
=
all
]]
;
then
if
[[
"
$1
"
=
all
]]
;
then
do_test_twice rproxy
&&
do_test_twice rproxy
&&
do_test_twice drive
&&
do_test_twice drive
&&
do_test_twice ss-tw
&&
do_test_twice ssr-tw
&&
do_test_twice ssr-hk
&&
do_test_twice frp-hk
&&
do_test_twice ss-us1
&&
do_test_twice ss-us1
&&
do_test_twice ss-us5
&&
do_test_twice ss-us5
&&
do_test_twice ss-us6
&&
do_test_twice ss-us6
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment