Debug disabled by default

pull/441/head
Piero Toffanin 2018-04-22 11:24:17 -04:00
rodzic f802a4aaf8
commit 9a162841f1
3 zmienionych plików z 5 dodań i 13 usunięć

Wyświetl plik

@ -84,16 +84,6 @@ Adding more processing nodes will allow you to run multiple jobs in parallel.
You **will not be able to distribute a single job across multiple processing nodes**. We are actively working to bring this feature to reality, but we're not there yet.
### Security
If you want to run WebODM in production, make sure to pass the `--no-debug` flag while starting WebODM:
```bash
./webodm.sh restart --no-debug
```
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
WebODM has the ability to automatically request and install a SSL certificate via [Lets Encrypt](https://letsencrypt.org/), or you can manually specify your own key/certificate pair.

Wyświetl plik

@ -4,6 +4,8 @@ __dirname=$(cd $(dirname "$0"); pwd -P)
${__dirname}/webodm.sh checkenv
export WO_DEBUG=YES
usage(){
echo "Usage: $0 <command> [options]"
echo

Wyświetl plik

@ -68,8 +68,8 @@ case $key in
shift # past argument
shift # past value
;;
--no-debug)
export WO_DEBUG=NO
--debug)
export WO_DEBUG=YES
shift # past argument
;;
--broker)
@ -108,7 +108,7 @@ usage(){
echo " --ssl-key <path> Manually specify a path to the private key file (.pem) to use with nginx to enable SSL (default: None)"
echo " --ssl-cert <path> Manually specify a path to the certificate file (.pem) to use with nginx to enable SSL (default: None)"
echo " --ssl-insecure-port-redirect <port> Insecure port number to redirect from when SSL is enabled (default: $DEFAULT_SSL_INSECURE_PORT_REDIRECT)"
echo " --no-debug Disable debug for production environments (default: disabled)"
echo " --debug Enable debug for development environments (default: disabled)"
echo " --broker Set the URL used to connect to the celery broker (default: $DEFAULT_BROKER)"
exit
}