-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.py
31 lines (24 loc) · 994 Bytes
/
settings.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
# Maximum size of a document to be published.
MAX_PAYLOAD_SIZE = 1000000
# Domains that can use our RESTful API. This is delivered as the
# value of the Access-Control-Allow-Origin header. For more information,
# see: https://developer.mozilla.org/en/HTTP_access_control
ALLOW_ORIGINS = '*'
# Domain at which your S3 bucket is exposed. Defaults to
# <BUCKET_NAME>.s3.amazonaws.com. For information on aliasing a domain to
# your bucket, see:
# http://carltonbale.com/how-to-alias-a-domain-name-or-sub-domain-to-amazon-s3
PUBLISH_DOMAIN = None
# Whether to enable PostMessage-Proxy-XMLHttpRequest for browsers
# that don't support CORS. For more information, see:
#
# https://github.com/toolness/postmessage-proxied-xhr/#readme
ENABLE_PPX = False
EXTRA_BUCKETS = {}
def subclass_settings(globs, **kwargs):
class SettingsSubclass(object):
pass
subclass = SettingsSubclass()
subclass.__dict__.update(globs)
subclass.__dict__.update(kwargs)
return subclass