From 8b329a9f7be5766d186206952035cf4e9ce3e712 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 5 Jan 2019 05:24:23 -0700 Subject: [PATCH] subst IP4 into nginx.conf --- .vscode/numbered-bookmarks.json | 2 +- setup.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/numbered-bookmarks.json b/.vscode/numbered-bookmarks.json index b82c5b3..af47e80 100644 --- a/.vscode/numbered-bookmarks.json +++ b/.vscode/numbered-bookmarks.json @@ -12,7 +12,7 @@ -1, -1, -1, - 563 + 553 ] } ] diff --git a/setup.sh b/setup.sh index 6a88f65..eb45553 100644 --- a/setup.sh +++ b/setup.sh @@ -49,6 +49,8 @@ file_ssl="nginx/snippets/ssl/ssl_certs.conf" tag_dhparam="" tag_cachain="" file_mozmodern="nginx/conf.d/mozModern_ssl.conf" +tag_lanip="" +file_lanip="nginx/nginx.conf" file_buffers="nginx/conf.d/buffers.conf" file_buffersPHP="nginx/conf.d/buffers_conf_php.insert" tag_phphandler="#$" @@ -549,6 +551,10 @@ echo "updating ${warn}${configPath}/${file_mozmodern}${norm}" sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}" sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}" +# process LAN IP in nginx.conf +echo "updating ${warn}${configPath}/${file_lanip}${norm}" +sed -i "s/${tag_lanip}/${IP4}" "${configPath}/${file_lanip}" + # if using PHP: process buffers.conf if [ "${usePHP}" -eq 1 ]; then echo "updating ${warn}${configPath}/${file_buffers}${norm}"