-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgraded all nginx config files and shell script.
and other shell sciprt file also upgraded. to get more high performance for web-server, config modified removed cache option in proxy config file normal case in proxy, it doesn't need. will support cache server next version. all shell script upgraded for readable getting data by keyboard input type. and some shell script files added to support create some config file.
- Loading branch information
Showing
17 changed files
with
525 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
#!/bin/bash | ||
|
||
account=$1 | ||
port=$2 | ||
while : | ||
do | ||
echo -n "Enter the service domain >" | ||
read domain | ||
echo "Entered service domain: $domain" | ||
if [[ "$domain" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the service portnumber >" | ||
read portnumber | ||
echo "Entered service portnumber: $portnumber" | ||
if [[ "$portnumber" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
sed 's/account/'$account'/' sample_php.conf > $account'1'.temp | ||
sed 's/port/'$port'/' $account'1'.temp > ./pool.d/$account'_php'.conf | ||
sed 's/domain/'$domain'/' sample_php.conf > $domain'1'.temp | ||
sed 's/portnumber/'$portnumber'/' $domain'1'.temp > ./pool.d/$domain'_php'.conf | ||
|
||
rm *.temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,68 @@ | ||
#!/bin/bash | ||
|
||
account=$1 | ||
domain=$2 | ||
portnumber=$3 | ||
appname=$4 | ||
service_port=$5 | ||
|
||
sed 's/account/'$account'/' sample_nginx.conf > $account'1'.temp | ||
sed 's/domain/'$domain'/g' $account'1'.temp > $account'2'.temp | ||
sed 's/portnumber;/'$portnumber';/' $account'2'.temp > $account'3'.temp | ||
sed 's/appname/'$appname'/' $account'3'.temp > $account'4'.temp | ||
sed 's/service_port/'$service_port'/' $account'4'.temp > ./pool.d/$account'_gunicorn_ng'.conf | ||
while : | ||
do | ||
echo -n "Enter the service web root >" | ||
read webroot | ||
echo "Entered service web root: $webroot" | ||
if [[ "$webroot" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the service portnumber >" | ||
read portnumber | ||
echo "Entered service portnumber: $portnumber" | ||
if [[ "$portnumber" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the service domain >" | ||
read domain | ||
echo "Entered service domain: $domain" | ||
if [[ "$domain" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the app name >" | ||
read appname | ||
echo "Entered app name: $appname" | ||
if [[ "$appname" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
echo "Enter the serviceport" | ||
echo -n "if you push enter with none, there are no port number >" | ||
read serviceport | ||
echo "Entered proxy port: $serviceport" | ||
|
||
while : | ||
do | ||
echo -n "Enter the file name >" | ||
read filename | ||
echo "Entered file name: $filename" | ||
if [[ "$filename" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
sed 's/webroot/'$webroot'/g' sample_nginx.conf > $filename'1'.temp | ||
sed 's/portnumber/'$portnumber'/g' $filename'1'.temp > $filename'2'.temp | ||
sed 's/domain/'$domain'/g' $filename'2'.temp > $filename'3'.temp | ||
sed 's/appname/'$appname'/g' $filename'3'.temp > $filename'4'.temp | ||
if [[ "$serviceport" == "" ]]; then | ||
sed 's/:serviceport/''/g' $filename'4'.temp > $filename'5'.temp | ||
else | ||
sed 's/serviceport/'$serviceport'/g' $filename'4'.temp > $filename'5'.temp | ||
sed 's/filename/'$filename'/g' $filename'5'.temp > ./pool.d/$filename'_gunicorn_ng'.conf | ||
|
||
rm *.temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,68 @@ | ||
#!/bin/bash | ||
|
||
account=$1 | ||
domain=$2 | ||
portnumber=$3 | ||
appname=$4 | ||
service_port=$5 | ||
|
||
sed 's/account/'$account'/' sample_nginx_https.conf > $account'1'.temp | ||
sed 's/domain/'$domain'/g' $account'1'.temp > $account'2'.temp | ||
sed 's/portnumber;/'$portnumber';/' $account'2'.temp > $account'3'.temp | ||
sed 's/appname/'$appname'/' $account'3'.temp > $account'4'.temp | ||
sed 's/service_port/'$service_port'/' $account'4'.temp > ./pool.d/$account'_gunicorn_https_ng'.conf | ||
while : | ||
do | ||
echo -n "Enter the service web root >" | ||
read webroot | ||
echo "Entered service web root: $webroot" | ||
if [[ "$webroot" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the service portnumber >" | ||
read portnumber | ||
echo "Entered service portnumber: $portnumber" | ||
if [[ "$portnumber" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the service domain >" | ||
read domain | ||
echo "Entered service domain: $domain" | ||
if [[ "$domain" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
while : | ||
do | ||
echo -n "Enter the app name >" | ||
read appname | ||
echo "Entered app name: $appname" | ||
if [[ "$appname" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
echo "Enter the serviceport" | ||
echo -n "if you push enter with none, there are no port number >" | ||
read serviceport | ||
echo "Entered proxy port: $serviceport" | ||
|
||
while : | ||
do | ||
echo -n "Enter the file name >" | ||
read filename | ||
echo "Entered file name: $filename" | ||
if [[ "$filename" != "" ]]; then | ||
break | ||
fi | ||
done | ||
|
||
sed 's/webroot/'$webroot'/g' sample_nginx_https.conf > $filename'1'.temp | ||
sed 's/portnumber/'$portnumber'/g' $filename'1'.temp > $filename'2'.temp | ||
sed 's/domain/'$domain'/g' $filename'2'.temp > $filename'3'.temp | ||
sed 's/appname/'$appname'/g' $filename'3'.temp > $filename'4'.temp | ||
if [[ "$serviceport" == "" ]]; then | ||
sed 's/:serviceport/''/g' $filename'4'.temp > $filename'5'.temp | ||
else | ||
sed 's/serviceport/'$serviceport'/g' $filename'4'.temp > $filename'5'.temp | ||
sed 's/filename/'$filename'/g' $filename'5'.temp > ./pool.d/$filename'_gunicorn_https_ng'.conf | ||
|
||
rm *.temp |
84 changes: 0 additions & 84 deletions
84
config/web-server/nginx/gunicorn/pool.d/sample_php_ng.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.