From 27bb5db7083391fb399879315e3b4f1cc6608811 Mon Sep 17 00:00:00 2001 From: SeanChenTaipei Date: Mon, 13 Mar 2023 15:37:43 +0800 Subject: [PATCH] c --- main.py | 3 ++- templates/base.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2909975..72aa371 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,8 @@ CONFIGS = { # "ENV": "development", # "DEBUG": True, "SECRET_KEY": os.urandom(30), # Set the secret key for session authentication - "PERMANENT_SESSION_LIFETIME": timedelta(minutes=60) + "PERMANENT_SESSION_LIFETIME": timedelta(minutes=60), + "PREFERRED_URL_SCHEME" : 'https' } SQL_CONFIG = dict( database= os.getenv("PGDATABASE"), diff --git a/templates/base.html b/templates/base.html index 9603407..fca5ebc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,7 @@ {% block title %}NTHU Trading Platform{% endblock title%} - +