Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
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
qa-deploy-utils
Commits
27cedbd8
Commit
27cedbd8
authored
Oct 26, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
773aa7ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
26 deletions
+61
-26
make_frp_ini.sh
qa_shell_script/ngrok/make_frp_ini.sh
+61
-26
No files found.
qa_shell_script/ngrok/make_frp_ini.sh
View file @
27cedbd8
...
...
@@ -2,7 +2,8 @@
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_shell_path
=
"
$pwd_path
"
config_server
=
"
$pwd_path
/config_server"
filename
=
/home/quant_group/frp_0.12.0_linux_amd64/frpc_custom_new.ini
filename
=
/home/quant_group/frp_0.12.0_linux_amd64/frpc_custom_new_1.ini
nginxname
=
/usr/local/openresty/nginx/conf/nginx_new.conf
IP_host_first
=
"192.168.4."
ips
=
`
cat
$config_server
/get_env_ip.sh
`
rm
-rf
$filename
...
...
@@ -13,27 +14,57 @@ function addFileHead()
echo
"server_addr = 127.0.0.1"
>>
$1
echo
"server_port = 7000"
>>
$1
echo
"privilege_token = 12345678"
>>
$1
echo
" "
>>
$1
echo
"[company-241]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 192.168.4.241"
>>
$1
echo
"local_port = 10087"
>>
$1
echo
"subdomain = company-241"
>>
$1
echo
" "
>>
$1
echo
"[auth-center-193]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 192.168.4.193"
>>
$1
echo
"local_port = 8099"
>>
$1
echo
"subdomain = auth-center-38"
>>
$1
echo
" "
>>
$1
echo
"log_file = ./frpc.log"
>>
$1
echo
"log_level = info"
>>
$1
echo
"log_max_days = 3"
>>
$1
echo
""
>>
$1
echo
"[atm]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 192.168.4.18"
>>
$1
echo
"local_port = 3000"
>>
$1
echo
"subdomain = atm"
>>
$1
echo
""
>>
$1
echo
"[qg-mock]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 172.30.199.2"
>>
$1
echo
"local_port = 8080"
>>
$1
echo
"subdomain = mock"
>>
$1
echo
""
>>
$1
echo
"[store]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 172.30.199.2"
>>
$1
echo
"local_port = 9000"
>>
$1
echo
"subdomain = store"
>>
$1
echo
""
>>
$1
echo
"[h5]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 192.168.4.15"
>>
$1
echo
"local_port = 7051"
>>
$1
echo
"subdomain = h5"
>>
$1
echo
""
>>
$1
echo
"[local]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 127.0.0.1"
>>
$1
echo
"local_port = 10081"
>>
$1
echo
"subdomain = "
>>
$1
echo
" "
>>
$1
echo
"local_port = 8000"
>>
$1
echo
"custom_domains = q-gp.com"
>>
$1
echo
"locations = /"
>>
$1
echo
""
>>
$1
echo
""
>>
$1
echo
"[localhttps]"
>>
$1
echo
"type = https"
>>
$1
echo
"local_port = 8001"
>>
$1
echo
"custom_domains = q-gp.com"
>>
$1
echo
"locations = /"
>>
$1
echo
" [app-241]"
>>
$1
echo
"type=http"
>>
$1
echo
"local_ip=192.168.4.241"
>>
$1
echo
"local_port=10087"
>>
$1
echo
"subdomain=app-241"
>>
$1
echo
""
>>
$1
echo
"[auth-center-193]"
>>
$1
echo
"type = http"
>>
$1
echo
"local_ip = 192.168.4.193"
>>
$1
echo
"local_port = 8099"
>>
$1
echo
"subdomain = auth-center-38"
>>
$1
}
addFileHead
$filename
...
...
@@ -54,12 +85,12 @@ function addFile2()
}
projectAndPort
=
`
node
$config_server
/get_project_config.js
-type
multi
-attr
port
`
for
projectAndPort
in
${
projectAndPort
[@]
}
do
var
=
${
projectAndPort
//|/
}
addFile2 25
$var
$filename
done
#
projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
#
for projectAndPort in ${projectAndPort[@]}
#
do
#
var=${projectAndPort//|/ }
#
addFile2 25 $var $filename
#
done
function
addFile
()
{
...
...
@@ -71,6 +102,10 @@ function addFile()
echo
"subdomain =
$2
-
$1
"
>>
$4
}
function
createNginxSSLConf
()
{
}
# projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
...
...
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