kopia lustrzana https://github.com/OpenDroneMap/WebODM
Updated readme, webodm.sh
rodzic
24b64b1523
commit
b2739a2789
|
@ -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
|
||||
|
||||
|
|
14
webodm.sh
14
webodm.sh
|
@ -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)"
|
||||
|
|
Ładowanie…
Reference in New Issue