Fix config bug
This commit is contained in:
parent
9210ce98f8
commit
2c4bf68c9e
|
@ -1,7 +1,20 @@
|
|||
API_USERS = "http://fids_usermanager_api:5000/users"
|
||||
API_FLIGHTS = "http://fids_flights_api:5000/flights"
|
||||
API_AUTH = "http://fids_usermanager_api:5000/auth"
|
||||
LOGS_UPD = "udp://fids_logstash:12201"
|
||||
API_SUBSCRIPTIONS = "http://fids_subscriptions_api:5000/subscriptions"
|
||||
API_NOTIFICATIONS = "http://fids_subscriptions_api:5000/notifications"
|
||||
API_MESSAGES = "http://fids_subscriptions_api:5000/messages"
|
||||
import os
|
||||
|
||||
TEST_TARGET = os.getenv("TEST_TARGET")
|
||||
|
||||
if TEST_TARGET == "INTEGRATION":
|
||||
API_USERS = "http://fids_usermanager_api_dev:5000/users"
|
||||
API_FLIGHTS = "http://fids_flights_api_dev:5000/flights"
|
||||
API_AUTH = "http://fids_usermanager_api_dev:5000/auth"
|
||||
LOGS_UPD = "udp://fids_logstash:12201"
|
||||
API_SUBSCRIPTIONS = "http://fids_subscriptions_api_dev:5000/subscriptions"
|
||||
API_NOTIFICATIONS = "http://fids_subscriptions_api_dev:5000/notifications"
|
||||
API_MESSAGES = "http://fids_subscriptions_api_dev:5000/messages"
|
||||
else:
|
||||
API_USERS = "http://fids_usermanager_api:5000/users"
|
||||
API_FLIGHTS = "http://fids_flights_api:5000/flights"
|
||||
API_AUTH = "http://fids_usermanager_api:5000/auth"
|
||||
LOGS_UPD = "udp://fids_logstash:12201"
|
||||
API_SUBSCRIPTIONS = "http://fids_subscriptions_api:5000/subscriptions"
|
||||
API_NOTIFICATIONS = "http://fids_subscriptions_api:5000/notifications"
|
||||
API_MESSAGES = "http://fids_subscriptions_api:5000/messages"
|
||||
|
|
Loading…
Reference in New Issue