🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 12m50s

rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
casjay 2025-05-01 14:05:35 -04:00
parent a704a3dc60
commit 130effde11
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -274,11 +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
# 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