Archived
添加了HTTPS跳转支持, 现在访问http://的请求均会被跳转到https://
This commit is contained in:
3 files changed
+58
No files matched your search
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user