Skip to content

Commit

Permalink
Merge pull request #448 from sparcs-kaist/feature/eks_deploy
Browse files Browse the repository at this point in the history
[EKS] Fix api url
  • Loading branch information
injoonH authored Mar 6, 2024
2 parents e04da28 + be579f0 commit b74cac1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/core/management/scripts/reminder_email_for_reply.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion apps/core/views/viewsets/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 2 additions & 0 deletions ara/settings/prod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down

0 comments on commit b74cac1

Please sign in to comment.