From a704a3dc607344f5d598eb6608b589741ce06aee Mon Sep 17 00:00:00 2001 From: casjay Date: Thu, 1 May 2025 14:03:29 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/zz-nginx.sh --- rootfs/usr/local/etc/docker/init.d/zz-nginx.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh b/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh index 8935592..d02f2df 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh @@ -274,6 +274,11 @@ __update_conf_files() { fi echo "Created $onion_site.onion in /data/htdocs/onions/$onion_site" done + if [ -f "/config/nginx/nginx.conf" ]; then + sed -i "s|REPLACE_SERVER_NAME|$HOSTNAME|g" "/config/nginx/nginx.conf" + sed -i "s|REPLACE_SERVER_PORT|$SERVICE_PORT|g" "/config/nginx/nginx.conf" + sed -i "s|REPLACE_SERVER_WWW_DIR|$WWW_ROOT_DIR|g" "/config/nginx/nginx.conf" + fi # allow custom functions if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi # exit function