Updated readme, webodm.sh

pull/332/head
Piero Toffanin 2017-11-18 11:25:43 -05:00
rodzic 24b64b1523
commit b2739a2789
2 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -85,7 +85,7 @@ If you want to run WebODM in production, make sure to pass the `--no-debug` flag
./webodm.sh down && ./webodm.sh start --no-debug
```
This will disable the `DEBUG` flag from `webodm/settings.py` within the docker container.
This will disable the `DEBUG` flag from `webodm/settings.py` within the docker container. This is [really important](https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-DEBUG).
### Enable SSL

Wyświetl plik

@ -165,7 +165,7 @@ start(){
method="Manual"
command+=" -f docker-compose.ssl-manual.yml"
fi
if [ "$method" = "Lets Encrypt" ]; then
# Check port settings
# as let's encrypt cannot communicate on ports
@ -175,12 +175,12 @@ start(){
echo "If you need to use a different port, you'll need to generate the SSL certificate files separately and use the --ssl-key and --ssl-certificate options."
fi
export WO_PORT=443
# Make sure we have a hostname
if [ "$WO_HOST" = "localhost" ]; then
echo -e "\033[91mSSL is enabled, but hostname cannot be set to $WO_HOST. Set the --hostname argument to the domain of your WebODM server (for example: www.mywebodm.org).\033[39m"
exit 1
fi
fi
# Make sure we have a hostname
if [ "$WO_HOST" = "localhost" ]; then
echo -e "\033[91mSSL is enabled, but hostname cannot be set to $WO_HOST. Set the --hostname argument to the domain of your WebODM server (for example: www.mywebodm.org).\033[39m"
exit 1
fi
echo "Will enable SSL ($method)"