kopia lustrzana https://github.com/OpenDroneMap/WebODM
Debug disabled by default
rodzic
f802a4aaf8
commit
9a162841f1
10
README.md
10
README.md
|
@ -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.
|
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
|
### Enable SSL
|
||||||
|
|
||||||
WebODM has the ability to automatically request and install a SSL certificate via [Let’s Encrypt](https://letsencrypt.org/), or you can manually specify your own key/certificate pair.
|
WebODM has the ability to automatically request and install a SSL certificate via [Let’s Encrypt](https://letsencrypt.org/), or you can manually specify your own key/certificate pair.
|
||||||
|
|
|
@ -4,6 +4,8 @@ __dirname=$(cd $(dirname "$0"); pwd -P)
|
||||||
|
|
||||||
${__dirname}/webodm.sh checkenv
|
${__dirname}/webodm.sh checkenv
|
||||||
|
|
||||||
|
export WO_DEBUG=YES
|
||||||
|
|
||||||
usage(){
|
usage(){
|
||||||
echo "Usage: $0 <command> [options]"
|
echo "Usage: $0 <command> [options]"
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -68,8 +68,8 @@ case $key in
|
||||||
shift # past argument
|
shift # past argument
|
||||||
shift # past value
|
shift # past value
|
||||||
;;
|
;;
|
||||||
--no-debug)
|
--debug)
|
||||||
export WO_DEBUG=NO
|
export WO_DEBUG=YES
|
||||||
shift # past argument
|
shift # past argument
|
||||||
;;
|
;;
|
||||||
--broker)
|
--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-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-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 " --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)"
|
echo " --broker Set the URL used to connect to the celery broker (default: $DEFAULT_BROKER)"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue