-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.sample.py
175 lines (140 loc) · 3.75 KB
/
config.sample.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
"""
Server bind
-----------
Here place the address and port you
would like dash to run on.
ADDRESS : str
Address to bind to.
PORT : int
Port to listen on.
"""
ADDRESS = '0.0.0.0'
PORT = 3000
"""
PostgreSQL credentials
----------------------
Here place the PostgreSQL credentials
where your Houdini database is located.
"""
POSTGRES_HOST = 'localhost'
POSTGRES_NAME = 'houdini'
POSTGRES_USER = 'postgres'
POSTGRES_PASSWORD = 'password'
"""
Redis configuration
----------------------
Here place the Redis configuration.
"""
REDIS_ADDRESS = 'localhost'
REDIS_PORT = 6379
"""
Google reCAPTCHA
----------------
GCAPTCHA_URL : str
Google captcha verify URL. Normally you do not need to
modify this.
GSECRET_KEY : str
Your reCAPTCHA secret key obtained from Google.
.. Google reCAPTCHA registration:
https://www.google.com/recaptcha/admin/create
"""
GCAPTCHA_URL = 'https://www.google.com/recaptcha/api/siteverify'
GSITE_KEY = ''
GSECRET_KEY = ''
"""
Player usernames
----------------
USERNAME_FORCE_CASE : bool
Force capitalized username no matter what user has
submitted.
ex:
BASIL -> Basil
APPROVE_USERNAME : bool
Approves username automatically so they do not have
to be approved by an administrator.
"""
USERNAME_FORCE_CASE = True
APPROVE_USERNAME = False
"""
Player activation
-----------------
ACTIVATE_PLAYER : bool
Activate player automatically so no email needs to be sent.
Disabling this option requires a SendGrid API key.
VANILLA_ACTIVATE_REDIRECT : str
URL to redirect to when player has activated their account
via email through the legacy domain.
LEGACY_ACTIVATE_REDIRECT : str
URL to redirect to when player has activated their account
via email through the vanilla domain.
"""
ACTIVATE_PLAYER = True
LEGACY_ACTIVATE_REDIRECT = 'http://old.clubpenguin.com'
VANILLA_ACTIVATE_REDIRECT = 'http://play.clubpenguin.com'
"""
Email
-----
SITE_NAME : str
The name of your site.
FROM_EMAIL : str
Will appear as the sender for emails sent via the SendGrid
API.
SENDGRID_API_KEY : str
Required for sending emails via the SendGrid API.
EMAIL_WHITELIST : list
List of email domains to accept. If set to an empty list
or `None` then dash will assume all email domains are
accepted.
MAX_ACCOUNT_EMAIL : int
Number of accounts which can be tied to a single email
address.
.. SendGrid registration:
https://signup.sendgrid.com/
"""
SITE_NAME = 'Houdini'
FROM_EMAIL = 'noreply@houdi.ni'
SENDGRID_API_KEY = ''
EMAIL_WHITELIST = ['gmail.com', 'hotmail.com', 'icloud.com', 'yahoo.com', 'aol.com']
MAX_ACCOUNT_EMAIL = 5
"""
Cryptography
------------
STATIC_KEY : str
Static key used to hash passwords. Should not be
changed unless required by login server auth.
"""
STATIC_KEY = 'houdini'
"""
Sub-domains
------------
LEGACY_PLAY_LINK : str
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.
"""
LEGACY_PLAY_LINK = 'http://old.clubpenguin.com' # AS2
VANILLA_PLAY_LINK = 'http://play.clubpenguin.com' # AS3
"""
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 = ''
LOGIN_FAILURE_TIMER = 3600
LOGIN_FAILURE_LIMIT = 5
"""
Card-Jitsu Snow
---------------
CJS_HOST : str
External ip or domain of the Card-Jitsu Snow game server.
CJS_PORT : int
Port of the Card-Jitsu Snow game server.
"""
CJS_HOST = 'localhost'
CJS_PORT = 7002
# For more configuration settings see
# https://sanic.readthedocs.io/en/latest/sanic/config.html#builtin-configuration-values