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