Fixed startup.sh in meshcentral

master
Tai Dao 2 years ago
parent 0d7c554e89
commit f55c6179f7

@ -59,3 +59,5 @@ networks:
```
After everything is set up do `docker-compose up -d` in this folder to start meshcentral!

@ -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

Loading…
Cancel
Save