Update config.py.template to meet Dash's requirements

This commit is contained in:
Roan 2020-05-17 21:41:57 +01:00 committed by GitHub
parent 8aa07113d8
commit 9d82d471c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ PORT : int
ADDRESS = '0.0.0.0' ADDRESS = '0.0.0.0'
PORT = 3000 PORT = 3000
""" """
PostgreSQL credentials PostgreSQL credentials
---------------------- ----------------------
@ -23,6 +24,16 @@ POSTGRES_USER = '{{ .Env.POSTGRES_USER }}'
POSTGRES_PASSWORD = '{{ .Env.POSTGRES_PASSWORD }}' POSTGRES_PASSWORD = '{{ .Env.POSTGRES_PASSWORD }}'
"""
Redis configuration
----------------------
Here place the Redis configuration.
"""
REDIS_ADDRESS = '0.0.0.0'
REDIS_PORT = 6379
""" """
Google reCAPTCHA Google reCAPTCHA
---------------- ----------------
@ -39,6 +50,7 @@ GCAPTCHA_URL = 'https://www.google.com/recaptcha/api/siteverify'
GSECRET_KEY = '{{ .Env.WEB_RECAPTCHA_SECRET }}' GSECRET_KEY = '{{ .Env.WEB_RECAPTCHA_SECRET }}'
GSITE_KEY = '{{ .Env.WEB_RECAPTCHA_SITE }}' GSITE_KEY = '{{ .Env.WEB_RECAPTCHA_SITE }}'
""" """
Player usernames Player usernames
---------------- ----------------
@ -55,6 +67,7 @@ APPROVE_USERNAME : bool
USERNAME_FORCE_CASE = True USERNAME_FORCE_CASE = True
APPROVE_USERNAME = False APPROVE_USERNAME = False
""" """
Player activation Player activation
----------------- -----------------
@ -65,14 +78,11 @@ LEGACY_ACTIVATE_LINK : str
URL player is taken to for activation. URL player is taken to for activation.
VANILLA_ACTIVATE_LINK : str VANILLA_ACTIVATE_LINK : str
URL player is taken to for activation. URL player is taken to for activation.
ACTIVATE_REDIRECT : str
URL to redirect to when player has activated their account
via email.
""" """
ACTIVATE_PLAYER = {{ if not .Env.WEB_SENDGRID_KEY }}True{{ else }}False{{ end }} ACTIVATE_PLAYER = {{ if not .Env.WEB_SENDGRID_KEY }}True{{ else }}False{{ end }}
VANILLA_ACTIVATE_LINK = '{{ .Env.WEB_VANILLA_PLAY }}' VANILLA_ACTIVATE_LINK = '{{ .Env.WEB_VANILLA_PLAY }}'
LEGACY_ACTIVATE_LINK = '{{ .Env.WEB_LEGACY_PLAY }}' LEGACY_ACTIVATE_LINK = '{{ .Env.WEB_LEGACY_PLAY }}'
ACTIVATE_REDIRECT = '{{ .Env.WEB_LEGACY_PLAY }}'
""" """
Email Email
@ -100,6 +110,7 @@ SENDGRID_API_KEY = '{{ .Env.WEB_SENDGRID_KEY }}'
EMAIL_WHITELIST = [] EMAIL_WHITELIST = []
MAX_ACCOUNT_EMAIL = 5 MAX_ACCOUNT_EMAIL = 5
""" """
Cryptography Cryptography
------------ ------------
@ -113,10 +124,25 @@ STATIC_KEY = 'houdini'
""" """
Sub-domains Sub-domains
------------ ------------
PLAY_SUBDOMAIN : str LEGACY_PLAY_LINK : str
Play page sub-domain used to load static content for the AS3 registration page. Play page sub-domain used to handle links for the AS2 registration page.
VANILLA_PLAY_LINK : str
Play page sub-domain used to handle links & load content for the AS3 registration page.
""" """
PLAY_SUBDOMAIN = '{{ .Env.WEB_VANILLA_PLAY }}' LEGACY_PLAY_LINK = '{{ .Env.WEB_LEGACY_PLAY }}'
VANILLA_PLAY_LINK = '{{ .Env.WEB_VANILLA_PLAY }}'
"""
Password reset
-----------------
AUTH_TTL : int
Time in seconds till a players password reset token expires.
PASSWORD_REDIRECT : str
URL to redirect to when player has reset their password.
"""
AUTH_TTL = 3600
PASSWORD_REDIRECT = ''
# For more configuration settings see # For more configuration settings see