Fix broker URL
Fix for https://github.com/codalab/codabench/issues/690
There are also the following changes, not shown for some reason*:
https://github.com/codalab/codabench/pull/726/files
*I have done a merge and revert by mistake, so the history thinks these commits are already merged.
Error in production when trying to create a queue, apparently due to the firewall configuration:
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='www.codabench.org', port=15672): Max retries exceeded with url: /api/users/26df2d3e-345e-472b-9d41-6e1ae58c4202 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fe68516c4f0>, 'Connection to www.codabench.org timed out. (connect timeout=5)'))
Summary of changes:
- Added "DOMAIN_NAME" variable in
settings/base.py
- RABBITMQ_HOST -> DOMAIN_NAME in
queues/models.py
- RABBITMQ_HOST -> DOMAIN_NAME in
docker-compose.yml
not sure if needed? - RABBITMQ_HOST -> DOMAIN_NAME in
queues/rabbit.py
not sure if needed?