Rename SERVER_NAME to SERVER_HOSTNAME to fix the subdomain routing problems.
This commit is contained in:
parent
8fac0474b5
commit
14fba3ae7c
5 changed files with 10 additions and 9 deletions
|
@ -30,7 +30,7 @@ def logs_init_builder(level=logging.DEBUG,
|
|||
|
||||
# The set of configuration key names that will be accessible in the client. Since these
|
||||
# values are set to the frontend, DO NOT PLACE ANY SECRETS OR KEYS in this list.
|
||||
CLIENT_WHITELIST = ['SERVER_NAME', 'PREFERRED_URL_SCHEME', 'GITHUB_CLIENT_ID',
|
||||
CLIENT_WHITELIST = ['SERVER_HOSTNAME', 'PREFERRED_URL_SCHEME', 'GITHUB_CLIENT_ID',
|
||||
'GITHUB_LOGIN_CLIENT_ID', 'MIXPANEL_KEY', 'STRIPE_PUBLISHABLE_KEY',
|
||||
'ENTERPRISE_LOGO_URL']
|
||||
|
||||
|
@ -57,7 +57,7 @@ class DefaultConfig(object):
|
|||
SEND_FILE_MAX_AGE_DEFAULT = 0
|
||||
POPULATE_DB_TEST_DATA = True
|
||||
PREFERRED_URL_SCHEME = 'http'
|
||||
SERVER_NAME = 'localhost:5000'
|
||||
SERVER_HOSTNAME = 'localhost:5000'
|
||||
|
||||
# Mail config
|
||||
MAIL_SERVER = ''
|
||||
|
|
Reference in a new issue