Skip to content

Commit

Permalink
Externalize OGC TIMEOUT setting as ENV var
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Fabiani committed Jun 27, 2018
1 parent 5bbbcaf commit 75128b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@

if UNOCONV_ENABLE:
UNOCONV_EXECUTABLE = os.getenv('UNOCONV_EXECUTABLE', '/usr/bin/unoconv')
UNOCONV_TIMEOUT = os.getenv('UNOCONV_TIMEOUT', 30) # seconds
UNOCONV_TIMEOUT = int(os.getenv('UNOCONV_TIMEOUT', 30)) # seconds

LOGGING = {
'version': 1,
Expand Down Expand Up @@ -740,7 +740,7 @@
'DATASTORE': os.getenv('DEFAULT_BACKEND_DATASTORE',''),
'PG_GEOGIG': False,
# 'CACHE': ".cache" # local cache file to for HTTP requests
'TIMEOUT': 10 # number of seconds to allow for HTTP requests
'TIMEOUT': int(os.getenv('OGC_REQUEST_TIMEOUT', '10')) # number of seconds to allow for HTTP requests
}
}

Expand Down

0 comments on commit 75128b8

Please sign in to comment.