forked from MediaCrush/MediaCrush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini.sample
84 lines (67 loc) · 2.75 KB
/
config.ini.sample
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
# Most of these options can (and should) be left with their default values.
[meta]
# Internal use for determining if this is the live site or not.
environment = dev
[config]
# Protocol and domain are used for constructing URLs in scripts like mediacrush.js.
# Don't worry about changing these values in unless you need to distribute a custom
# mediacrush.js.
protocol = https
domain = mediacru.sh
incoming_domain = mediacru.sh # If you're proxying to this server, change this to what the servers set the Host to
tor_domain =
# URLs to media files will be prefixed with this. Do not include a trailing forward slash.
# If you don't use a CDN, you can leave this empty.
cdn =
# When running in debug mode, this controls the endpoint that it listens on.
debug-host = 0.0.0.0
debug-port = 5000
# When true, static resources will be recompiled on every request, instead of just
# at startup
debug-static-recompile=false
# storage_folder is the location on disk where uploaded files should be saved.
# If you have problems, you might want to use an absolute path here
storage_folder = storage
# This value is currently ignored, and each supported mimetype has its own timing rules.
max_processing_time = 60
# Max upload size (source file)
max_file_size = 50M
# Hooks allow the site to rebuild itself when there's a commit to the repository
# POST github-style hook messages to /hook/ to update
# Only these IP (ranges) will be allowed. By default, we use localhost and the
# GitHub hook IPs.
# The site will `git pull` and then execute restart_command
hook_ips = 204.232.175.64/27,192.30.252.0/22,127.0.0.1
hook_branch = master
hook_repository = MediaCrush/MediaCrush
restart_command = supervisorctl reload
redis-ip = 127.0.0.1
redis-port = 6379
# See <https://mediacru.sh/advertising> for info on setting up ads for your own instance
project_wonderful_id =
google_analytics_id =
google_analytics_domain =
# Leave these as "changeme" to disable them
dwolla_id = changeme
flattr_id = changeme
coinbase_id = changeme
# Change these options to configure mandrill for sending daily reports to the admins of your instance
mandrill_api = changeme
admin_email = changeme@changeme.com
from_email = admin@mediacru.sh
# If you put the dev docs somewhere other than ./docs/, update this
docs_path = docs
# Sharding: 0 = 1 shard (default), 1 = 64 shards, 2 = 4096 shards.
sharding = 0
[ratelimit-upload]
# Period is in seconds. Units in bytes. Default rate limit is 0.2ish GB per hour
period = 3600
units_per_period = 250000000
[ratelimit-feedback]
# Controls how frequently users can post feedback using the feedback tool on every page. Default is 5 times per day.
period = 86400
units_per_period = 5
[ratelimit-report]
# How frequently you can use the "report" feature
period = 86400
units_per_period = 5