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
6f10f4e4
There was an error fetching the commit references. Please try again later.
Verified
Commit
6f10f4e4
authored
5 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
add recolic.org-dns, home-http, change ssr to v, fix recolic.net issue
parent
878319ce
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
+6
-4
6 additions, 4 deletions
datafile_gen_daemon_conf.py
do.bash
+23
-11
23 additions, 11 deletions
do.bash
with
29 additions
and
15 deletions
datafile_gen_daemon_conf.py
+
6
−
4
View file @
6f10f4e4
# datafile generator daemon config
# datafile generator daemon config
tests
=
[
tests
=
[
(
'
./do.bash rproxy
'
,
'
Reverse Proxy
'
),
(
'
./do.bash rproxy
'
,
'
Reverse Proxy
(Old SSH)
'
),
(
'
./do.bash drive
'
,
'
Drive
'
),
(
'
./do.bash drive
'
,
'
Drive
'
),
(
'
./do.bash
ssr
-tw
'
,
'
ShadowSocksR
taiwan
'
),
(
'
./do.bash
v
-tw
'
,
'
Project V
taiwan
'
),
(
'
./do.bash
ssr
-hk
'
,
'
ShadowSocksR
HongKong
'
),
(
'
./do.bash
v
-hk
'
,
'
Project V
HongKong
'
),
(
'
./do.bash frp-hk
'
,
'
FRPS
HongKong
'
),
(
'
./do.bash frp-hk
'
,
'
Reverse Proxy (
HongKong
FRP)
'
),
(
'
./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
'
),
...
@@ -21,6 +21,8 @@ tests = [
...
@@ -21,6 +21,8 @@ tests = [
(
'
./do.bash rocket
'
,
'
Recolic Rocket Chat
'
),
(
'
./do.bash rocket
'
,
'
Recolic Rocket Chat
'
),
(
'
./do.bash dl
'
,
'
Download Site
'
),
(
'
./do.bash dl
'
,
'
Download Site
'
),
(
'
./do.bash shortlink
'
,
'
Short Link
'
),
(
'
./do.bash shortlink
'
,
'
Short Link
'
),
(
'
./do.bash org-dns
'
,
'
recolic.org DNS
'
),
(
'
./do.bash home-http
'
,
'
Home HTTP, NFS, NAS, BaiduDownloader, etc
'
),
]
]
test_interval
=
20
*
60
# 20min
test_interval
=
20
*
60
# 20min
...
...
This diff is collapsed.
Click to expand it.
do.bash
+
23
−
11
View file @
6f10f4e4
#!/bin/bash
#!/bin/bash
[[
$1
==
''
]]
&&
echo
-e
'Usage: '
"
$0
<operation> ...
\n
operation := rproxy | drive |
ssr
-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
[[
$1
==
''
]]
&&
echo
-e
'Usage: '
"
$0
<operation> ...
\n
operation := rproxy | drive |
v
-tw |
v
-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 |
org-dns | home-http |
all"
&&
exit
1
[[
$(
id
-u
)
=
0
]]
&&
ping_fld
=
"-f"
[[
$(
id
-u
)
=
0
]]
&&
ping_fld
=
"-f"
...
@@ -43,11 +43,11 @@ function do_test () {
...
@@ -43,11 +43,11 @@ function do_test () {
confirm_alive drive.recolic.net
&&
confirm_alive drive.recolic.net
&&
curl
-s
https://drive.recolic.net:444/index.php/login |
grep
'submit-wrapper'
||
return
$?
curl
-s
https://drive.recolic.net:444/index.php/login |
grep
'submit-wrapper'
||
return
$?
;;
;;
ssr
-tw
)
v
-tw
)
test_tcp base.tw1.recolic.net 465
||
return
$?
curl https://git.recolic.net/vr/test
-vv
2>&1 |
grep
404
||
return
$?
;;
;;
ssr
-hk
)
v
-hk
)
test_tcp base.hk1.recolic.net 4
67
||
return
$?
test_tcp base.hk1.recolic.net 4
43
||
return
$?
;;
;;
frp-hk
)
frp-hk
)
test_tcp base.hk1.recolic.net 30999
||
return
$?
test_tcp base.hk1.recolic.net 30999
||
return
$?
...
@@ -72,9 +72,9 @@ function do_test () {
...
@@ -72,9 +72,9 @@ function do_test () {
www
)
www
)
confirm_alive recolic.net
&&
confirm_alive recolic.net
&&
confirm_alive www.recolic.net
&&
confirm_alive www.recolic.net
&&
curl
-s
https://recolic.net/ |
grep
'
Follow me on github
'
||
return
$?
curl
-s
https://recolic.net/ |
grep
'
Powered by
'
||
return
$?
curl
-s
https://www.recolic.net/ |
grep
'
Follow me on github
'
||
return
$?
curl
-s
https://www.recolic.net/ |
grep
'
Powered by
'
||
return
$?
curl
-s
-L
http://recolic.net/ |
grep
'
Follow me on github
'
||
return
$?
curl
-s
-L
http://recolic.net/ |
grep
'
Powered by
'
||
return
$?
;;
;;
mail
)
mail
)
confirm_alive smtp.recolic.net
&&
confirm_alive smtp.recolic.net
&&
...
@@ -149,7 +149,17 @@ function do_test () {
...
@@ -149,7 +149,17 @@ function do_test () {
confirm_alive rocket.recolic.net
&&
confirm_alive rocket.recolic.net
&&
curl
-s
https://rocket.recolic.net:444/api/info |
grep
'success":true'
||
return
$?
curl
-s
https://rocket.recolic.net:444/api/info |
grep
'success":true'
||
return
$?
;;
;;
org-dns
)
confirm_alive www.recolic.org
&&
curl
-s
https://recolic.org/
||
return
$?
;;
home-http
)
confirm_alive home.cnm.cool
&&
curl
-s
http://home.cnm.cool/
||
return
$?
;;
esac
esac
return
0
}
}
function
do_test_twice
()
{
function
do_test_twice
()
{
...
@@ -160,8 +170,8 @@ function do_test_twice () {
...
@@ -160,8 +170,8 @@ 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
ssr
-tw
&&
do_test_twice
v
-tw
&&
do_test_twice
ssr
-hk
&&
do_test_twice
v
-hk
&&
do_test_twice frp-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
&&
...
@@ -177,7 +187,9 @@ if [[ "$1" = all ]]; then
...
@@ -177,7 +187,9 @@ if [[ "$1" = all ]]; then
do_test_twice ddns-wuhan
&&
do_test_twice ddns-wuhan
&&
do_test_twice rocket
&&
do_test_twice rocket
&&
do_test_twice shortlink
&&
do_test_twice shortlink
&&
do_test_twice dl
do_test_twice dl
&&
do_test_twice org-dns
&&
do_test_twice home-http
exit
$?
exit
$?
fi
fi
...
...
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