Loading docker-compose-dev.yml +3 −2 Original line number Diff line number Diff line Loading @@ -69,8 +69,9 @@ services: - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL - ROSETTA_LOG_LEVEL=DEBUG #- ROSETTA_WEBAPP_HOST=localhost # Internal, for the agent #- ROSETTA_WEBAPP_PORT=8080 # Internal, for the agent #- ROSETTA_WEBAPP_SSL=False # Used for the agent. #- ROSETTA_WEBAPP_HOST= # Used for the agent, can be internal. Defaults to webapp IP. #- ROSETTA_WEBAPP_PORT=8080 # Used for the agent, can be internal. #- ROSETTA_REGISTRY_HOST=proxy #- ROSETTA_REGISTRY_PORT=5000 #- DJANGO_EMAIL_APIKEY="" Loading services/webapp/code/rosetta/core_app/utils.py +5 −1 Original line number Diff line number Diff line Loading @@ -504,8 +504,12 @@ def get_my_ip(): return my_ip def get_webapp_conn_string(): webapp_ssl = booleanize(os.environ.get('ROSETTA_WEBAPP_SSL', False)) webapp_host = os.environ.get('ROSETTA_WEBAPP_HOST', get_my_ip()) webapp_port = os.environ.get('ROSETTA_WEBAPP_PORT', '8080') if webapp_ssl: webapp_conn_string = 'https://{}:{}'.format(webapp_host, webapp_port) else: webapp_conn_string = 'http://{}:{}'.format(webapp_host, webapp_port) return webapp_conn_string Loading Loading
docker-compose-dev.yml +3 −2 Original line number Diff line number Diff line Loading @@ -69,8 +69,9 @@ services: - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL - ROSETTA_LOG_LEVEL=DEBUG #- ROSETTA_WEBAPP_HOST=localhost # Internal, for the agent #- ROSETTA_WEBAPP_PORT=8080 # Internal, for the agent #- ROSETTA_WEBAPP_SSL=False # Used for the agent. #- ROSETTA_WEBAPP_HOST= # Used for the agent, can be internal. Defaults to webapp IP. #- ROSETTA_WEBAPP_PORT=8080 # Used for the agent, can be internal. #- ROSETTA_REGISTRY_HOST=proxy #- ROSETTA_REGISTRY_PORT=5000 #- DJANGO_EMAIL_APIKEY="" Loading
services/webapp/code/rosetta/core_app/utils.py +5 −1 Original line number Diff line number Diff line Loading @@ -504,8 +504,12 @@ def get_my_ip(): return my_ip def get_webapp_conn_string(): webapp_ssl = booleanize(os.environ.get('ROSETTA_WEBAPP_SSL', False)) webapp_host = os.environ.get('ROSETTA_WEBAPP_HOST', get_my_ip()) webapp_port = os.environ.get('ROSETTA_WEBAPP_PORT', '8080') if webapp_ssl: webapp_conn_string = 'https://{}:{}'.format(webapp_host, webapp_port) else: webapp_conn_string = 'http://{}:{}'.format(webapp_host, webapp_port) return webapp_conn_string Loading