Ted78700/ThreeOne_cloud
0
1#!/bin/sh2# This script runs inside the container when it starts.3set -e4 5# 1. Generate the initial config.yaml from the template and environment variables (Secrets).6envsubst < /home/node/app/config.template.yaml > /home/node/app/config.yaml7 8# 2. Forcibly set all necessary plugin-related configurations.9sed -i 's/^ *whitelistMode:.*$/whitelistMode: false/' /home/node/app/config.yaml10sed -i 's/^ *enableServerPlugins:.*$/enableServerPlugins: true/' /home/node/app/config.yaml11sed -i 's/^ *enableServerPluginsAutoUpdate:.*$/enableServerPluginsAutoUpdate: false/' /home/node/app/config.yaml12sed -i 's/^ *extensions\.enabled:.*$/extensions.enabled: true/' /home/node/app/config.yaml13 14# 3. Start the main application.15exec node server.js16 