添加了HTTPS跳转支持, 现在访问http://的请求均会被跳转到https://

This commit is contained in:
MarkusJoe
2022-04-07 21:12:33 +08:00
parent f181a0c6cf
commit 099644599b
3 files changed
+58

No files matched your search

+4
View File
@@ -6,9 +6,13 @@
# @File Name: config.py
import os
class Config:
JSON_SORT_KEYS = False
JSON_AS_ASCII = False
SSL_REDIRECT = False if not os.environ.get('DYNO') else True
@staticmethod
def init_app(app):