Page MenuHome

config.py.example
No OneTemporary

config.py.example

from collections import defaultdict
class Development(object):
PORT = 5000
HOST = '0.0.0.0'
SCHEME = 'http'
DEBUG = True
RFC1123_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
BUGSNAG_API_KEY = ''
# Authentication settings
BLENDER_ID_ENDPOINT = os.environ.get(
'BLENDER_ID_ENDPOINT', "https://www.blender.org/id").rstrip("/")
# Settings for storage
STORAGE_DIR = '/data/storage/pillar'
SHARED_DIR = '/data/storage/shared'
USE_X_SENDFILE = False
# Fill in only if we are going to use a CDN-attached storage solution.
# Currently we use GCS and do not have enough traffic to justify that
CDN_STORAGE_USER = ''
CDN_STORAGE_ADDRESS = ''
CDN_SYNC_LOGS = ''
CDN_RSA_KEY = ''
CDN_KNOWN_HOSTS = ''
# Credentials to access project on the Google Cloud where Google Cloud
# Storage is enabled (Pillar will automatically create and manage buckets)
GCLOUD_APP_CREDENTIALS = os.environ.get(
'GOOGLE_APPLICATION_CREDENTIALS', '/data/config/google_app.json')
GCLOUD_PROJECT = os.environ.get('GCLOUD_PROJECT', 'blender-cloud')
# Fill in only if we plan to sign our urls using a the CDN
CDN_USE_URL_SIGNING = False
CDN_SERVICE_DOMAIN_PROTOCOL = 'https'
CDN_SERVICE_DOMAIN = ''
CDN_CONTENT_SUBFOLDER = ''
CDN_URL_SIGNING_KEY = ''
# Settings for image processing (good defaults, should not be altered)
UPLOADS_LOCAL_STORAGE_THUMBNAILS = {
's': {'size': (90, 90), 'crop': True},
'b': {'size': (160, 160), 'crop': True},
't': {'size': (160, 160), 'crop': False},
'm': {'size': (320, 320), 'crop': False},
'l': {'size': (1024, 1024), 'crop': False},
'h': {'size': (2048, 2048), 'crop': False}
}
# Settings for encoder (local will run FFMPEG on the server and is discouraged
# for production setups)
ENCODING_BACKEND = 'zencoder' #local, flamenco
# Zencoder is a production ready encoding solution
ZENCODER_API_KEY = ''
ZENCODER_NOTIFICATIONS_SECRET = ''
ZENCODER_NOTIFICATIONS_URL = 'http://zencoderfetcher/'
BIN_FFPROBE ='/usr/bin/ffprobe'
BIN_FFMPEG = '/usr/bin/ffmpeg'
BIN_SSH = '/usr/bin/ssh'
BIN_RSYNC = '/usr/bin/rsync'
# Settings for indexing (currently only Algolia is supported)
ALGOLIA_USER = ''
ALGOLIA_API_KEY = ''
ALGOLIA_INDEX_USERS = ''
# Validity period of links, per file storage backend. Expressed in seconds.
# Shouldn't be more than a year, as this isn't supported by HTTP/1.1.
FILE_LINK_VALIDITY = defaultdict(
lambda: 3600 * 24 * 30, # default of 1 month.
gcs=3600 * 23, # 23 hours for Google Cloud Storage.
)
class Deployment(Development): pass

File Metadata

Mime Type
text/x-python
Expires
Thu, Dec 8, 9:33 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
43/b7/fe306bd0911c34b97c18d6180f98

Event Timeline