From f1e3b70f85d369524bb47bc08a0183d3d2cf4292 Mon Sep 17 00:00:00 2001 From: kmd Date: Sun, 7 Jul 2024 15:57:12 -0700 Subject: [PATCH] Use TLS for auth redirect in prod. --- api/app/settings.py | 3 +++ infra/app/variables.tf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/app/settings.py b/api/app/settings.py index 7221012..bf4fb5b 100644 --- a/api/app/settings.py +++ b/api/app/settings.py @@ -190,3 +190,6 @@ SOCIALACCOUNT_ONLY = True ACCOUNT_EMAIL_VERIFICATION = 'none' + +if IS_PROD: + ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https' diff --git a/infra/app/variables.tf b/infra/app/variables.tf index eacdd7e..b97fe28 100644 --- a/infra/app/variables.tf +++ b/infra/app/variables.tf @@ -2,7 +2,7 @@ variable "app_versions" { type = map(string) default = { client : "0.3.0", - api : "0.2.0", + api : "0.2.1", } }