From b706fcd28db8e262d9dbf387f7e13cb683e673a8 Mon Sep 17 00:00:00 2001 From: Nick Leffler Date: Sat, 13 Jun 2020 23:08:46 -0400 Subject: [PATCH] added a couple things --- deploy.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 8219bb7..ea52b56 100755 --- a/deploy.sh +++ b/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\$ {