From be579f07b20ad666fa05077068af0eb857e3a5f0 Mon Sep 17 00:00:00 2001 From: DoyunShin Date: Sat, 3 Feb 2024 15:55:17 +0000 Subject: [PATCH] fix(deploy): Fix url to elk api --- apps/core/management/scripts/reminder_email_for_reply.py | 2 +- apps/core/views/viewsets/report.py | 2 +- ara/settings/prod/__init__.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/core/management/scripts/reminder_email_for_reply.py b/apps/core/management/scripts/reminder_email_for_reply.py index 59f00920..ae2baab2 100644 --- a/apps/core/management/scripts/reminder_email_for_reply.py +++ b/apps/core/management/scripts/reminder_email_for_reply.py @@ -9,7 +9,7 @@ if env("DJANGO_ENV") == "production": django_env = "" - BASE_URL = "https://newara.sparcs.org/post" + BASE_URL = "https://newara-api.sparcs.org/post" else: django_env = "[DEV]" BASE_URL = "https://newara.dev.sparcs.org/post" diff --git a/apps/core/views/viewsets/report.py b/apps/core/views/viewsets/report.py index afff5623..8795925c 100644 --- a/apps/core/views/viewsets/report.py +++ b/apps/core/views/viewsets/report.py @@ -56,7 +56,7 @@ def get_queryset(self): def send_email_for_article_report(request): django_env = "PROD" if env("DJANGO_ENV") == "production" else "DEV" article_link = ( - "newara.sparcs.org" + "newara-api.sparcs.org" if env("DJANGO_ENV") == "production" else "newara.dev.sparcs.org" ) diff --git a/ara/settings/prod/__init__.py b/ara/settings/prod/__init__.py index 249a3011..efe04044 100644 --- a/ara/settings/prod/__init__.py +++ b/ara/settings/prod/__init__.py @@ -6,11 +6,13 @@ ALLOWED_HOSTS = [ "newara.sparcs.org", + "newara-api.sparcs.org", "ara.sparcs.org", ] CSRF_TRUSTED_ORIGINS = [ "https://newara.sparcs.org", + "https://newara-api.sparcs.org", "https://ara.sparcs.org", ]