|
|
|
@ -17,7 +17,7 @@ if [ -f "meshcentral-data/config.json" ]
|
|
|
|
|
sed -i "s/\"cert\": \"myserver.mydomain.com\"/\"cert\": \"$HOSTNAME\"/" meshcentral-data/config.json
|
|
|
|
|
if [ "$REVERSE_PROXY" != "false" ]
|
|
|
|
|
then
|
|
|
|
|
sed -i "s/\"_certUrl\": \"my\.reverse\.proxy\"/\"certUrl\": \"https:\/\/$REVERSE_PROXY:$REVERSE_PROXY_TLS_PORT\"/" meshcentral-data/config.json
|
|
|
|
|
sed -i "s/\"certUrl\": \"my\.reverse\.proxy\"/\"certUrl\": \"https:\/\/$REVERSE_PROXY:$REVERSE_PROXY_TLS_PORT\"/" meshcentral-data/config.json
|
|
|
|
|
node node_modules/meshcentral
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|