162
163
DEFAULT_FROM_EMAIL = 'noreply@widelands.org'
163
164
ACCOUNT_ACTIVATION_DAYS = 2 # Days an activation token keeps active
165
# Franku: SHA1 Needed as compatibility for old passwords
166
# SHA1 Needed as compatibility for old passwords
166
167
# https://docs.djangoproject.com/en/1.11/releases/1.10/#removed-weak-password-hashers-from-the-default-password-hashers-setting
167
168
PASSWORD_HASHERS = [
168
169
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
190
191
######################
191
192
# Pybb Configuration #
192
193
######################
193
# See also pybb defaults in pybb.settings.py
194
PYBB_ATTACHMENT_ENABLE = False # disable gzip middleware when enabling attachments
195
PYBB_ATTACHMENT_ENABLE = True
197
# To prevent sending errors from the webserver, keep
198
# this below the webserver settings
199
PYBB_ATTACHMENT_SIZE_LIMIT = 1024*1024*4
195
200
PYBB_DEFAULT_MARKUP = 'markdown'
196
INTERNAL_PERM='pybb.can_access_internal' # The permission string derived from pybb.models.category
201
INTERNAL_PERM = 'pybb.can_access_internal' # The permission string derived from pybb.models.category
203
##################################
204
# Uploading files and validation #
205
##################################
207
# Use only this handler to get real a file in /tmp
208
# Some validation checks needs a real file
209
FILE_UPLOAD_HANDLERS = [
210
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
213
ALLOWED_EXTENSIONS = [
214
'wgf', 'jpg', 'jpeg', 'gif', 'png', 'ogg', 'lua',
215
'ods', 'zip', 'json', 'txt', 'csv', 'wai',
218
# Widelands Savegame should contain at least these entries
219
WGF_CONTENT_CHECK = ['/binary/', '/map/', '/minimap.png', '/preload',]
221
# Do not check mime type for these extensions
222
SKIP_MIME_EXTENSIONS = ['wai',]
224
ALLOWED_WAI_SECTIONS = [
225
'magic_numbers', 'neuron_values',
226
'neuron_functions', 'fneurons',
229
# Allow attachments only after this amount of posts
230
ALLOW_ATTACHMENTS_AFTER = 5
232
# Page describing uploads
233
ATTACHMENT_DESCR_PAGE = 'Attachments'
235
# If clamav including clamdscan is installed and running
198
239
##############################################
199
240
# Link classification and other Markup stuff #