Skip to content
Snippets Groups Projects
Verified Commit 6f10f4e4 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

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
# 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
......
#!/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 467 || return $? test_tcp base.hk1.recolic.net 443 || 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment