New dash config template

This commit is contained in:
Ben 2020-05-07 03:53:59 +01:00
parent 8b5c005a39
commit 4d08d8f519

View File

@ -18,9 +18,9 @@ Here place the PostgreSQL credentials
where your Houdini database is located. where your Houdini database is located.
""" """
POSTGRES_HOST = 'db' POSTGRES_HOST = 'db'
POSTGRES_NAME = 'postgres' POSTGRES_NAME = '{{ .Env.POSTGRES_USER }}'
POSTGRES_USER = 'postgres' POSTGRES_USER = '{{ .Env.POSTGRES_USER }}'
POSTGRES_PASSWORD = 'postgres' POSTGRES_PASSWORD = '{{ .Env.POSTGRES_PASSWORD }}'
""" """
@ -36,7 +36,8 @@ GSECRET_KEY : str
https://www.google.com/recaptcha/admin/create https://www.google.com/recaptcha/admin/create
""" """
GCAPTCHA_URL = 'https://www.google.com/recaptcha/api/siteverify' GCAPTCHA_URL = 'https://www.google.com/recaptcha/api/siteverify'
GSECRET_KEY = '' GSECRET_KEY = '{{ .Env.WEB_RECAPTCHA_SITE }}'
GSITE_KEY = '{{ .Env.WEB_RECAPTCHA_SECRET }}'
""" """
Player usernames Player usernames
@ -60,15 +61,18 @@ Player activation
ACTIVATE_PLAYER : bool ACTIVATE_PLAYER : bool
Activate player automatically so no email needs to be sent. Activate player automatically so no email needs to be sent.
Enabling this option requires a SendGrid API key. Enabling this option requires a SendGrid API key.
ACTIVATE_LINK : str LEGACY_ACTIVATE_LINK : str
URL player is taken to for activation.
VANILLA_ACTIVATE_LINK : str
URL player is taken to for activation. URL player is taken to for activation.
ACTIVATE_REDIRECT : str ACTIVATE_REDIRECT : str
URL to redirect to when player has activated their account URL to redirect to when player has activated their account
via email. via email.
""" """
ACTIVATE_PLAYER = True ACTIVATE_PLAYER = {{ if not .Env.WEB_SENDGRID_KEY }}True{{ else }}False{{ end }}
ACTIVATE_LINK = 'http://secure.clubpenguin.com/create/activate/' VANILLA_ACTIVATE_LINK = '{{ .Env.WEB_VANILLA_PLAY }}/create/activate'
ACTIVATE_REDIRECT = '' LEGACY_ACTIVATE_LINK = '{{ .Env.WEB_LEGACY_PLAY }}/create/activate'
ACTIVATE_REDIRECT = '{{ .Env.WEB_LEGACY_PLAY }}'
""" """
Email Email
@ -90,10 +94,10 @@ MAX_ACCOUNT_EMAIL : int
.. SendGrid registration: .. SendGrid registration:
https://signup.sendgrid.com/ https://signup.sendgrid.com/
""" """
SITE_NAME = 'Houdini' SITE_NAME = '{{ .Env.WEB_HOSTNAME }}'
FROM_EMAIL = 'noreply@houdi.ni' FROM_EMAIL = 'noreply@{{ .Env.WEB_HOSTNAME }}'
SENDGRID_API_KEY = '' SENDGRID_API_KEY = '{{ .Env.WEB_SENDGRID_KEY }}'
EMAIL_WHITELIST = ['gmail.com', 'hotmail.com'] EMAIL_WHITELIST = []
MAX_ACCOUNT_EMAIL = 5 MAX_ACCOUNT_EMAIL = 5
""" """
@ -104,3 +108,16 @@ STATIC_KEY : str
changed unless required by login server auth. changed unless required by login server auth.
""" """
STATIC_KEY = 'houdini' STATIC_KEY = 'houdini'
"""
Sub-domains
------------
PLAY_SUBDOMAIN : str
Play page sub-domain used to load static content for the AS3 registration page.
"""
PLAY_SUBDOMAIN = '{{ .Env.WEB_VANILLA_PLAY }}'
# For more configuration settings see
# https://sanic.readthedocs.io/en/latest/sanic/config.html#builtin-configuration-values