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}"