Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1316 Update url config for consistency #25

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class DevelopmentConfig(BaseConfig):
SESSION_COOKIE_SECURE = bool(strtobool(os.getenv('SESSION_COOKIE_SECURE', 'False')))

ACCOUNT_SERVICE_URL = f"{DOMAIN_URL_PROTOCOL}{DOMAIN_URL}"
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:8071/")
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:8071")


class TestingConfig(DevelopmentConfig):
DEBUG = False
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:9071/")
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:9071")
2 changes: 1 addition & 1 deletion rh_ui/controllers/rh_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_eq_token(uac: str, region: str) -> Response:


def request_eq_launch_token(uac_hash: str, region_code: str) -> Response:
rh_svc_url_token = (f'{current_app.config.get("RH_SVC_URL")}eqLaunch/{uac_hash}?languageCode={region_code}' +
rh_svc_url_token = (f'{current_app.config.get("RH_SVC_URL")}/eqLaunch/{uac_hash}?languageCode={region_code}' +
f'&accountServiceUrl={current_app.config.get("ACCOUNT_SERVICE_URL")}')
response = requests.get(rh_svc_url_token)
return response
Expand Down
Loading