diff options
author | Prabhu Ramachandran | 2018-01-05 15:47:05 +0530 |
---|---|---|
committer | GitHub | 2018-01-05 15:47:05 +0530 |
commit | 65ce10a9057d30e6a7e9a37926abdef97e5fdc48 (patch) | |
tree | 8cf8c7ef08b63b68013dce99faf14223c2f73764 /yaksh/settings.py | |
parent | feb295b4107a95621e9430f5c7042cfde4674cc0 (diff) | |
parent | bbf844c6ebf9b29c436930b5d5129ebf77a3aad1 (diff) | |
download | online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.tar.gz online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.tar.bz2 online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.zip |
Merge pull request #404 from ankitjavalkar/add-docker-compose-test
Add docker compose deployment
Diffstat (limited to 'yaksh/settings.py')
-rw-r--r-- | yaksh/settings.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/yaksh/settings.py b/yaksh/settings.py index d500d93..d895d19 100644 --- a/yaksh/settings.py +++ b/yaksh/settings.py @@ -2,16 +2,21 @@ settings for yaksh app. """ +from decouple import config + # The number of code server processes to run.. -N_CODE_SERVERS = 5 +N_CODE_SERVERS = config('N_CODE_SERVERS', default=5, cast=int) # The server pool port. This is the server which returns available server # ports so as to minimize load. This is some random number where no other # service is running. It should be > 1024 and less < 65535 though. -SERVER_POOL_PORT = 53579 +SERVER_POOL_PORT = config('SERVER_POOL_PORT', default=55555, cast=int) + +SERVER_HOST_NAME = config('SERVER_HOST_NAME', default='http://localhost') +#'localhost' # Timeout for the code to run in seconds. This is an integer! -SERVER_TIMEOUT = 4 +SERVER_TIMEOUT = config('SERVER_TIMEOUT', default=4, cast=int) # The root of the URL, for example you might be in the situation where you # are not hosted as host.org/exam/ but as host.org/foo/exam/ for whatever |