added a couple things
This commit is contained in:
parent
db8febc233
commit
b706fcd28d
15
deploy.sh
15
deploy.sh
@ -16,19 +16,26 @@ wwwUser="nginx"
|
|||||||
|
|
||||||
get_info () {
|
get_info () {
|
||||||
#read -p "Enter Site Name: " siteName
|
#read -p "Enter Site Name: " siteName
|
||||||
|
read -p "Is this a staging site [y/N]: " staging
|
||||||
read -p "Enter Site Title: " siteTitle
|
read -p "Enter Site Title: " siteTitle
|
||||||
read -p "SSL [Y/n]: " siteProtoIn
|
read -p "SSL [Y/n]: " siteProtoIn
|
||||||
read -p "Certbot ready? [Y/n]: " cbReady
|
read -p "Certbot ready? [Y/n]: " cbReady
|
||||||
read -p "Enter Site URL [without http/s]: " siteURL
|
read -p "Enter Site URL [without http/s and real domain not staging URL]: " siteURL
|
||||||
read -p "Enter WPAdmin email: " adminEmail
|
read -p "Enter WPAdmin email: " adminEmail
|
||||||
|
|
||||||
if [[ $siteProtoIn == "n" ]]; then
|
if [[ $siteProtoIn == "n" ]]; then
|
||||||
siteProto="http://"
|
siteProto="http://"
|
||||||
ssl=0
|
ssl=0
|
||||||
fi
|
fi
|
||||||
|
if [[ $staging == "y" ]]; then
|
||||||
|
read -p "Please enter staging URL: " stagingURL
|
||||||
|
else
|
||||||
|
staging="n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
serverName="${siteURL} ${stagingURL}"
|
||||||
fullURL="${siteProto}${siteURL}"
|
fullURL="${siteProto}${siteURL}"
|
||||||
siteName="$(siteTitle}"
|
siteName="${siteTitle}"
|
||||||
}
|
}
|
||||||
|
|
||||||
genSSL () {
|
genSSL () {
|
||||||
@ -67,6 +74,7 @@ server {
|
|||||||
root "${siteFP}";
|
root "${siteFP}";
|
||||||
## This should be in your http block and if it is, it's not needed here.
|
## This should be in your http block and if it is, it's not needed here.
|
||||||
index index.php;
|
index index.php;
|
||||||
|
client_max_body_size 25M;
|
||||||
|
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
@ -96,6 +104,7 @@ server {
|
|||||||
# include the "?\$args" part so non-default permalinks doesn't break when using query string
|
# include the "?\$args" part so non-default permalinks doesn't break when using query string
|
||||||
try_files \$uri \$uri/ /index.php?\$args;
|
try_files \$uri \$uri/ /index.php?\$args;
|
||||||
}
|
}
|
||||||
|
#include cache.conf;
|
||||||
|
|
||||||
# Pass PHP scripts to PHP-FPM
|
# Pass PHP scripts to PHP-FPM
|
||||||
location ~* \\.php\$ {
|
location ~* \\.php\$ {
|
||||||
@ -129,6 +138,7 @@ server {
|
|||||||
root "${siteFP}";
|
root "${siteFP}";
|
||||||
## This should be in your http block and if it is, it's not needed here.
|
## This should be in your http block and if it is, it's not needed here.
|
||||||
index index.php;
|
index index.php;
|
||||||
|
client_max_body_size 25M;
|
||||||
|
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
@ -158,6 +168,7 @@ server {
|
|||||||
# include the "?\$args" part so non-default permalinks doesn't break when using query string
|
# include the "?\$args" part so non-default permalinks doesn't break when using query string
|
||||||
try_files \$uri \$uri/ /index.php?\$args;
|
try_files \$uri \$uri/ /index.php?\$args;
|
||||||
}
|
}
|
||||||
|
#include cache.conf;
|
||||||
|
|
||||||
# Pass PHP scripts to PHP-FPM
|
# Pass PHP scripts to PHP-FPM
|
||||||
location ~* \\.php\$ {
|
location ~* \\.php\$ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user