Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 595 lines (514 sloc) 18.812 kb
abe385c @kemitche Add note to top of generated ini files
kemitche authored
1 # DO NOT EDIT THIS FILE
2 # This is a base template. To apply changes to your
3 # reddit instance, create a "myreddit.update" config
4 # file, then run 'make ini'. 'make ini' will combine
5 # this template with the myreddit.update file and create a
6 # 'myreddit.ini'. ('myreddit.update' is just an example;
7 # any name will do - e.g., 'foo.update' will create
8 # 'foo.ini')
9
10
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
11 #
12 # r2 - Pylons development environment configuration
13 #
14 # The %(here)s variable will be replaced with the parent directory of this file
15 #
16 [DEFAULT]
e683889 @jedberg New Features
jedberg authored
17
18 # -- debug and configuation flags --
19 # global debug flag -- displays pylons stacktrace rather than 500 page on error when true
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
20 debug = true
8b5cad8 @chromakode Move toggle for template caching into its own .ini flag.
chromakode authored
21 # enables/disables whitespace removal (for development)
22 template_debug = false
23 # enables/disables compiled template caching and template file mtime checking
24 reload_templates = true
e683889 @jedberg New Features
jedberg authored
25 # use uncompressed static files (out of /static/js and /static/css)
26 # rather than compressed files out of /static (for development if true)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
27 uncompressedJS = true
e683889 @jedberg New Features
jedberg authored
28 # enable/disable verbose SQL printing
9813d94 @jedberg Make reddit compatible with Postgres 8.3 and Python 2.6
jedberg authored
29 sqlprinting = false
e683889 @jedberg New Features
jedberg authored
30 # whether to print a "reddit app started" message at start"
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
31 log_start = true
e683889 @jedberg New Features
jedberg authored
32 # enable/disable logging for amqp/rabbitmq
33 amqp_logging = false
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
34 # emergency measures: makes the site read only
35 read_only_mode = false
4758ac8 @spladug Make read-only mode slightly less frustrating.
spladug authored
36 # a modified read only mode used for cache shown during heavy load 503s
37 heavy_load_mode = false
4169226 @spladug Make profiling transparent and aggregatable.
spladug authored
38 # directory to write cProfile stats dumps to (disabled if not set)
39 profile_directory =
775c795 @spladug Use WebError Reporter objects for exception logging.
spladug authored
40 # exception reporter objects to give to ErrorMiddleware (see log.py)
41 error_reporters =
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
42
a86261f @andre-d Add a contextual description metatag for scrapers.
andre-d authored
43 # the site's tagline, used in the title and description
44 short_description = open source is awesome
45
e683889 @jedberg New Features
jedberg authored
46 # -- SECRETS! <-- update these first! --
47 # global secret
48 SECRET = abcdefghijklmnopqrstuvwxyz0123456789
49 # secret for /prefs/feeds
50 FEEDSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5721e46 @spladug Add validator that checks a secret key or admin cookie.
spladug authored
51 # used for authenticating admin API calls w/o cookie
52 ADMINSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
53
c209cc2 @kemitche Switch to cloudsearch as primary search provider
kemitche authored
54 CLOUDSEARCH_SEARCH_API =
55 CLOUDSEARCH_DOC_API =
213dd1e @kemitche Add CLOUDSEARCH_SUBREDDIT endpoints to example.ini
kemitche authored
56 CLOUDSEARCH_SUBREDDIT_SEARCH_API =
57 CLOUDSEARCH_SUBREDDIT_DOC_API =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
58
a6da54d @spladug Add missing gold checkout stuff to example.ini.
spladug authored
59 # for gold purchases.
60 PAYPAL_SECRET =
61 PAYPAL_BUTTONID_ONETIME_BYMONTH =
62 PAYPAL_BUTTONID_ONETIME_BYYEAR =
63 PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
64 PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
65 PAYPAL_BUTTONID_CREDDITS_BYMONTH =
66 PAYPAL_BUTTONID_CREDDITS_BYYEAR =
67
68 GOOGLE_ID =
69 GOOGLE_KEY =
70 GOOGLE_REQUEST_URL = https://checkout.google.com/api/checkout/v2/request/Merchant/
71 GOOGLE_REPORT_URL = https://checkout.google.com/api/checkout/v2/reports/Merchant/
72
3d51107 @bsimpson63 Stripe payments for reddit gold.
bsimpson63 authored
73 STRIPE_WEBHOOK_SECRET =
74 STRIPE_PUBLIC_KEY =
75 STRIPE_SECRET_KEY =
76
e301b34 @bsimpson63 Coinbase payments for reddit gold.
bsimpson63 authored
77 COINBASE_WEBHOOK_SECRET =
78 COINBASE_BUTTONID_ONETIME_1MO =
79 COINBASE_BUTTONID_ONETIME_2MO =
80 COINBASE_BUTTONID_ONETIME_3MO =
81 COINBASE_BUTTONID_ONETIME_4MO =
82 COINBASE_BUTTONID_ONETIME_5MO =
83 COINBASE_BUTTONID_ONETIME_6MO =
84 COINBASE_BUTTONID_ONETIME_7MO =
85 COINBASE_BUTTONID_ONETIME_8MO =
86 COINBASE_BUTTONID_ONETIME_9MO =
87 COINBASE_BUTTONID_ONETIME_10MO =
88 COINBASE_BUTTONID_ONETIME_11MO =
89 COINBASE_BUTTONID_ONETIME_1YR =
90 COINBASE_BUTTONID_ONETIME_2YR =
91 COINBASE_BUTTONID_ONETIME_3YR =
92
a4e0aa0 @bsimpson63 RedditGifts gold controller.
bsimpson63 authored
93 RG_SECRET =
94
d411cd5 Added support for disabling adds via config file
westmaas authored
95 # -- feature toggles --
96 disable_ads = false
92fdd42 Added option to disable captcha verification
gabe authored
97 disable_captcha = false
1ecb427 @andre-d Add an option to disable rate limiting. For testing.
andre-d authored
98 disable_ratelimit = false
1db68ce @spladug Require two-factor authentication to enable admin mode.
spladug authored
99 disable_require_admin_otp = false
d411cd5 Added support for disabling adds via config file
westmaas authored
100
8e188e2 @andre-d wiki: Rename wiki_disabled to disable_wiki.
andre-d authored
101 # Disable wiki editing and viewing for everyone except admins
102 disable_wiki = false
103
e683889 @jedberg New Features
jedberg authored
104 # -- important settings --
105 # the domain that this app serves itself up as
7fff900 @ketralnis February 2011 Merge
ketralnis authored
106 domain = reddit.local
68a06c5 @spladug April 2011 Merge
spladug authored
107 # the short domain (like redd.it)
108 shortdomain =
e683889 @jedberg New Features
jedberg authored
109 # if you use www for the old-timey feel, put it here
110 domain_prefix =
7118bde @spladug Turn CNAMEs into a simple redirect.
spladug authored
111 # subdomains that don't need special processing
112 reserved_subdomains = www, ssl
e683889 @jedberg New Features
jedberg authored
113 # the user used for "system" operations and messages
114 system_user = reddit
115 # list of admin accounts
116 admins = reddit
117 # the default subreddit for submissions
118 default_sr = reddit.com
e6178be Make default header image URL configurable.
westmaas authored
119 # default header image url
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
120 default_header_url = reddit.com.header.png
e683889 @jedberg New Features
jedberg authored
121
122 # time for the page cache (for unlogged in users)
123 page_cache_time = 90
a8c6631 @spladug Comment Pane Cache: make cache lifetime configurable in INI.
spladug authored
124 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
125 commentpane_cache_time = 120
e683889 @jedberg New Features
jedberg authored
126
127 # default localization for strings (when using python's locale.format)
128 locale = C
129 # default site language (two letter character code)
01146c3 @kemitche Remove unused r2.po and friends from repo
kemitche authored
130 site_lang = en
c280c6a @chromakode Fix handling of an unset language override.
chromakode authored
131 lang_override =
e7b672d @spladug Replace proxy_addr with option to trust proxies in 10.0.0.0/8.
spladug authored
132 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
133 # set X-forwarded-for and set this to true
134 trust_local_proxies = false
e683889 @jedberg New Features
jedberg authored
135 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
136 ip_hash =
137 # timezone for storing
138 timezone = UTC
139 # timezone for the database
140 display_timezone = MST
b847757 @chromakode Use cross domain https for slightly safer login.
chromakode authored
141 # https api endpoint (must be g.domain or a subdomain of g.domain)
142 https_endpoint =
e683889 @jedberg New Features
jedberg authored
143 # name of the cookie to drop with login information
144 login_cookie = reddit_session
33b15bc @spladug Split the admin cookie out from the session cookie.
spladug authored
145 # name of the admin cookie
146 admin_cookie = reddit_admin
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
147 # name of the otp cookie
148 otp_cookie = reddit_otp
2a8cc84 @spladug Refactor user authentication to be more modular.
spladug authored
149 # how to authenticate users. see r2/lib/authentication.py for options
150 authentication_provider = cookie
a311805 @spladug Switch to bcrypt for password hashing.
spladug authored
151 # the work factor for bcrypt, increment this every time computers double in
152 # speed. don't worry, changing this won't break old passwords
153 bcrypt_work_factor = 12
e683889 @jedberg New Features
jedberg authored
154
987be0d @kemitche Replace reference to #subreddit with /r/subreddit
kemitche authored
155 # account used for default feedback messaging (can be /r/subreddit)
e683889 @jedberg New Features
jedberg authored
156 admin_message_acct = reddit
157
158
159 # -- caching options --
160 # data cache (used for caching Thing objects)
161 num_mc_clients = 5
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
162 memcaches = 127.0.0.1:11211
ab039b4 @spladug Use a different set of memcaches for locking.
spladug authored
163 # caches to use for locking
164 lockcaches = 127.0.0.1:11211
7fff900 @ketralnis February 2011 Merge
ketralnis authored
165 stalecaches =
ae6ba7a added a separate set of memcaches for the render cache
spez authored
166 rendercaches = 127.0.0.1:11211
2d22cd2 @spladug Split the rendercache and pagecache.
spladug authored
167 pagecaches = 127.0.0.1:11211
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
168
67814d5 @ketralnis Features:
ketralnis authored
169 # -- permacache options --
170 # permacache is memcaches -> cassanda -> memcachedb
171 # memcaches that sit in front of cassandra
172 permacache_memcaches = 127.0.0.1:11211
173 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f @KeyserSosa Upgrade Instructions
KeyserSosa authored
174 cassandra_seeds = 127.0.0.1:9160
fcd3f3b @spladug Make cassandra connection pool size configurable.
spladug authored
175 # number of connections to keep open to the cassandra ring
176 cassandra_pool_size = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
177 # read/write consistency levels for Cassandra
178 cassandra_rcl = ONE
7fff900 @ketralnis February 2011 Merge
ketralnis authored
179 cassandra_wcl = ONE
532be3f @spladug Allow Cassandra models to choose a connection pool.
spladug authored
180 # name of default connection pool to use when _connection_pool not specified
181 cassandra_default_pool = main
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
182
e683889 @jedberg New Features
jedberg authored
183 ## -- traffic tracking urls --
93a65a6 @spladug Move onload out of the app.
spladug authored
184 # domain to send tracking requests (see scripts/tracker.py)
0302293 @spladug fetch_trackers: Change tracking_domain config to be a full URL.
spladug authored
185 fetch_trackers_url = http://reddit.local/fetch-trackers
e683889 @jedberg New Features
jedberg authored
186 # image to render to track pageviews
187 tracker_url = /static/pixel.png
188 # images to render to track sponsored links
189 adtracker_url = /static/pixel.png
190 # image to render to track the ad frame
d433cb2 @chromakode Remove production pixel URL from example.ini.
chromakode authored
191 adframetracker_url = /static/pixel.png
e683889 @jedberg New Features
jedberg authored
192 # open redirector to bounce clicks off of on sponsored links for tracking
193 clicktracker_url = /static/pixel.png
482e864 @chromakode Fire a pixel for UI flow tracking of sub/unsubscribe.
chromakode authored
194 # url to request to track interaction statistics
195 uitracker_url = /static/pixel.png
e683889 @jedberg New Features
jedberg authored
196
197 # amqp
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
198 amqp_host = localhost:5672
e683889 @jedberg New Features
jedberg authored
199 amqp_user = reddit
200 amqp_pass = reddit
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
201 amqp_virtual_host = /
202
0b09f25 @spladug Add basic support for ZooKeeper via Kazoo.
spladug authored
203 ## -- zookeeper --
204 # optional at the moment
205 zookeeper_connection_string =
206 zookeeper_username =
207 zookeeper_password =
208
e683889 @jedberg New Features
jedberg authored
209 ## -- database setup --
210 # list of all databases named in the subsequent table
9cd5fed @spladug Add traffic to example.ini.
spladug authored
211 databases = main, comment, vote, email, authorize, award, hc, traffic
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
212
7fff900 @ketralnis February 2011 Merge
ketralnis authored
213 db_user = reddit
214 db_pass = password
215 db_port = 5432
216 db_pool_size = 3
217 db_pool_overflow_size = 3
218
219 #db name db host user, pass, port, conn, overflow_conn
220 main_db = reddit, 127.0.0.1, *, *, *, *, *
221 comment_db = reddit, 127.0.0.1, *, *, *, *, *
222 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
223 vote_db = reddit, 127.0.0.1, *, *, *, *, *
224 email_db = reddit, 127.0.0.1, *, *, *, *, *
225 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
226 award_db = reddit, 127.0.0.1, *, *, *, *, *
227 hc_db = reddit, 127.0.0.1, *, *, *, *, *
9cd5fed @spladug Add traffic to example.ini.
spladug authored
228 traffic_db = reddit, 127.0.0.1, *, *, *, *, *
e683889 @jedberg New Features
jedberg authored
229
7fff900 @ketralnis February 2011 Merge
ketralnis authored
230 hardcache_categories = *:hc:hc
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
231
e683889 @jedberg New Features
jedberg authored
232 # this setting will prefix all of the table names
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
233 db_app_name = reddit
e683889 @jedberg New Features
jedberg authored
234 # are we allowed to create tables?
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
235 db_create_tables = True
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored
236 # are we allowed to write at all?
237 disallow_db_writes = False
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
238
239 type_db = main
240 rel_type_db = main
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
241 hardcache_db = main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
242
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored
243 # definitions of what each table is (probably shouldn't change in .update files)
244 # things require no extra info. relation is followed by the names of the related tables
245 db_table_link = thing
246 db_table_account = thing
247 db_table_message = thing
248 db_table_savehide = relation, account, link
249 db_table_click = relation, account, link
250 db_table_comment = thing
251 db_table_subreddit = thing
252 db_table_srmember = relation, subreddit, account
253 db_table_friend = relation, account, account
254 db_table_vote_account_link = relation, account, link
255 db_table_vote_account_comment = relation, account, comment
256 db_table_inbox_account_comment = relation, account, comment
257 db_table_inbox_account_message = relation, account, message
258 db_table_moderatorinbox = relation, subreddit, message
259 db_table_report_account_link = relation, account, link
260 db_table_report_account_comment = relation, account, comment
261 db_table_report_account_message = relation, account, message
262 db_table_report_account_subreddit = relation, account, subreddit
263 db_table_award = thing
264 db_table_trophy = relation, account, award
265 db_table_jury_account_link = relation, account, link
266 db_table_ad = thing
267 db_table_adsr = relation, ad, subreddit
268 db_table_flair = relation, subreddit, account
09dbd49 @shlurbee Update config with new promocampaign thing table
shlurbee authored
269 db_table_promocampaign = thing
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored
270
271 # which servers to find each table on (likely to change in .update files)
272 # first server listed is assumed to be the master, all others are read-only slaves
273 # additionally, a "!avoid_master" flag may be added to specify that reads should use the slaves
274 db_servers_link = main, main
275 db_servers_account = main
276 db_servers_message = main
277 db_servers_savehide = main
278 db_servers_click = main
279 db_servers_comment = comment
280 db_servers_subreddit = comment
281 db_servers_srmember = comment
282 db_servers_friend = comment
283 db_servers_vote_account_link = vote
284 db_servers_vote_account_comment = vote
285 db_servers_inbox_account_comment = main
286 db_servers_inbox_account_message = main
287 db_servers_moderatorinbox = main
288 db_servers_report_account_link = main
289 db_servers_report_account_comment = comment
290 db_servers_report_account_message = main
291 db_servers_report_account_subreddit = main
292 db_servers_award = award
293 db_servers_trophy = award
294 db_servers_jury_account_link = main
295 db_servers_ad = main
296 db_servers_adsr = main
297 db_servers_flair = main
09dbd49 @shlurbee Update config with new promocampaign thing table
shlurbee authored
298 db_servers_promocampaign = main
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
299
e683889 @jedberg New Features
jedberg authored
300
301 ## -- traffic analytics --
302 # google analytics token
303 googleanalytics =
304 # secret used for talking to the traffic machine
305 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
306
307
308 ## -- Self-service sponsored link stuff --
309 # (secure) payment domain
172f869 @chromakode Add an example subdomain for payment_domain in example.ini.
chromakode authored
310 payment_domain = https://pay.reddit.local/
7fff900 @ketralnis February 2011 Merge
ketralnis authored
311 ad_domain = http://reddit.local
312 allowed_pay_countries = United States, United Kingdom, Canada
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
313 sponsors =
3fe8471 @shlurbee Add email link to promo traffic help page
shlurbee authored
314 selfserve_support_email = selfservesupport@mydomain.com
37a4766 @kemitche Limit the number of campaigns per promoted link
kemitche authored
315 MAX_CAMPAIGNS_PER_LINK = 100
7fff900 @ketralnis February 2011 Merge
ketralnis authored
316
317 # authorize.net credentials (blank authorizenetapi to disable)
318 authorizenetapi =
319 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 @jedberg New Features
jedberg authored
320 authorizenetname =
321 authorizenetkey =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
322
e683889 @jedberg New Features
jedberg authored
323 min_promote_bid = 20
324 max_promote_bid = 9999
325 min_promote_future = 2
326
a70a6ea @bsimpson63 Process traffic logs on Amazon EMR.
bsimpson63 authored
327 # traffic log processing
328 TRAFFIC_ACCESS_KEY =
329 TRAFFIC_SECRET_KEY =
330 RAW_LOG_DIR =
331 PROCESSED_DIR =
332 AGGREGATE_DIR =
333 AWS_LOG_DIR =
334 TRAFFIC_SRC_DIR =
335 TRAFFIC_LOG_HOSTS =
336
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
337 ###
338 # Other magic settings
339 ###
340
e412fdc @spladug Shard vote_link_qs by last digit of subreddit ID.
spladug authored
341 # should we split link votes into separate queues based on subreddit id?
342 # this helps with lock contention but isn't necessary on smaller sites
343 shard_link_vote_queues = false
344
e683889 @jedberg New Features
jedberg authored
345 # list of cnames allowed to render as reddit.com without a frame
346 authorized_cnames =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
347
e683889 @jedberg New Features
jedberg authored
348 # -- query cache settings --
fbe867e @spladug Implement new lockless query cache.
spladug authored
349 querycache_prune_chance = 0.05
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
350
e683889 @jedberg New Features
jedberg authored
351 # -- stylesheet editor --
352 # disable custom stylesheets
353 css_killswitch = False
354 # list of "trusted" domains that can be referenced in url()
355 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
356 # max number of uploaded images per subreddit
357 max_sr_images = 50
358 # default stylesheet and it's rtl version
b770a4b @chromakode reddit.css -> reddit.less
chromakode authored
359 stylesheet = reddit.less
e683889 @jedberg New Features
jedberg authored
360 stylesheet_rtl = reddit-rtl.css
361 # location of the static directory
362 static_path = /static/
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
363 # if set, these are the domains used for static files served over http and https
364 # if not set, no domain will be specified
365 static_domain =
366 static_secure_domain =
367 # if this is true, append .gz to CSS and JS files served from the static domain
368 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
369 static_pre_gzipped = false
370 static_secure_pre_gzipped = false
b2ad131 @spladug Subreddit CSS: Store subreddit CSS on S3 and minify it.
spladug authored
371 # which s3 bucket to place subreddit styles on (when empty, stylesheets will be served
372 # from the local database instead.
373 static_stylesheet_bucket =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
374
e683889 @jedberg New Features
jedberg authored
375 # subreddit used for DMCA takedowns
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
376 takedown_sr = _takedowns
e683889 @jedberg New Features
jedberg authored
377 # png compressor
378 png_optimizer = /usr/bin/env optipng
f5b6839 @spladug Losslessly optimize JPEGs.
spladug authored
379 # jpeg compressor
380 jpeg_optimizer =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
381
e683889 @jedberg New Features
jedberg authored
382 # Just a list of words. Used by errlog.py to make up names for new errors.
383 words_file = /usr/dict/words
2869eaf @ketralnis New features:
ketralnis authored
384
e683889 @jedberg New Features
jedberg authored
385 # -- media stuff --
386 # user agent for the scraper
387 useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored
388
389 # The storage method to use for media
390 # Options:
391 # s3 - Uses Amazon S3 to upload media to buckets
392 media_store = s3
393
58a6496 @spladug Allow boto to gather AWS credentials from alternate sources.
spladug authored
394 # your s3 credentials -- if these are left blank, we'll pass None to
395 # boto which will trigger it to look in various places, including instance
396 # metadata if on ec2, for credentials.
e683889 @jedberg New Features
jedberg authored
397 S3KEY_ID =
398 S3SECRET_KEY =
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored
399
400 # This bucket is used for old media, new installs may leave this blank
401 s3_old_thumb_bucket =
402
403 # May be one bucket, or many buckets seperated by commas
404 s3_media_buckets =
405
406 # Store direct urls for images, rather than buckets
407 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
408 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
409 # false: http://mybucket/helloworld.jpg
410 s3_media_direct = true
411
e683889 @jedberg New Features
jedberg authored
412 media_domain = localhost
4b9fee7 @screeley Use an API key for the embed.ly API.
screeley authored
413 # Embedly API Key
414 embedly_api_key =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
415
440cb66 @chromakode Move gold prices to configuration parameters.
chromakode authored
416 # -- prices --
417 gold_month_price = 3.99
418 gold_year_price = 29.99
419
e683889 @jedberg New Features
jedberg authored
420 # -- limits --
421 # rate limiter duration (minutes)
422 RATELIMIT = 10
423 # minimum display karma
424 MIN_UP_KARMA = 1
425 MIN_RATE_LIMIT_KARMA = 10
426 MIN_RATE_LIMIT_COMMENT_KARMA = 1
427 QUOTA_THRESHOLD = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
428 # Links and comments older than this many days qualify for historic preservation
429 REPLY_AGE_LIMIT = 180
68a06c5 @spladug April 2011 Merge
spladug authored
430 # Links and comments older than this many days can't be voted on
431 VOTE_AGE_LIMIT = 180
856a67e @alienth Ignore reports older than the report age limit.
alienth authored
432 # Reports on links and comments older than this many days are ignored
433 REPORT_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored
434 # minimum age, in days, of an account to be eligible to create a community
435 min_membership_create_community = 30
a42505c @spladug Keep admin cookie around if actively used.
spladug authored
436 # the maximum life of an admin cookie (seconds)
437 ADMIN_COOKIE_TTL = 32400
438 # the maximum amount of idle time for an admin cookie (seconds)
439 ADMIN_COOKIE_MAX_IDLE = 900
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
440 # the maximum life of an otp cookie
441 OTP_COOKIE_TTL = 604800
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
442
e683889 @jedberg New Features
jedberg authored
443 HOT_PAGE_AGE = 1000
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
444
e683889 @jedberg New Features
jedberg authored
445 # -- display options --
446 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored
447 rising_period = 12 hours
e683889 @jedberg New Features
jedberg authored
448 # max number of comments (default)
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
449 num_comments = 100
450 # max number of comments (non-gold)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
451 max_comments = 500
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
452 # max number of comments (gold)
453 max_comments_gold = 2500
e683889 @jedberg New Features
jedberg authored
454 # list of reddits to auto-subscribe users to
455 automatic_reddits =
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
456 # special reddit that only reddit gold subscribers can use
457 lounge_reddit =
e683889 @jedberg New Features
jedberg authored
458 # cutoff number of reddits to show unsubscribed users
0745f5b @KeyserSosa make 1/2 of the default reddits English reddits if the user hasn't set t...
KeyserSosa authored
459 num_default_reddits = 10
e683889 @jedberg New Features
jedberg authored
460 # how deep do we go into the top listing when fetching /random
461 num_serendipity = 250
852b989 srbar updates
Mike authored
462 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
463
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
464 # Conflate visits to a comment page that happen within this many
465 # seconds of each other
466 comment_visits_period = 600
467
e683889 @jedberg New Features
jedberg authored
468 #user-agents to rate-limit
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
469 agents =
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
470 # subreddit ratelimits
471 sr_banned_quota = 10000
db7b531 @chromakode Change moderator adding to an invite system.
chromakode authored
472 sr_moderator_invite_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
473 sr_contributor_quota = 10000
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
474 sr_wikibanned_quota = 10000
475 sr_wikicontributor_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
476 sr_quota_time = 7200
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
477
e683889 @jedberg New Features
jedberg authored
478 # -- email --
479 # smtp server
480 smtp_server = localhost
481 # delay before allowing a link to be shared
482 new_link_share_delay = 30 seconds
483 # alerter emails
484 nerds_email = nerds@reddit.com
485 # share reply email
486 share_reply = noreply@reddit.com
487 # feedback email
488 feedback_email = reddit@gmail.com
7ce107f @KeyserSosa sharing
KeyserSosa authored
489
51bcbfb @bsimpson63 Method _key_from_url() now returns case sensitive results for special do...
bsimpson63 authored
490 # Special case sensitive domains
491 case_sensitive_domains = i.imgur.com, youtube.com
492
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
493 # Number of days to keep recent wiki revisions for
494 wiki_keep_recent_days = 7
495
496 # Max number of bytes for wiki pages
497 wiki_max_page_length_bytes = 262144
498
499 # Max wiki page name length
500 wiki_max_page_name_length = 128
501
502 # Max number of separators in a wiki page name
503 wiki_max_page_separators = 3
504
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
505 # Location (directory) for temp files for diff3 merging
506 # Empty will use python default for temp files
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
507 # Pro tip: Use /dev/shm for in-memory diff3
508 diff3_temp_location =
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
509
4b53396 @chromakode Privacy policy and user agreement viewer.
chromakode authored
510 # -- policy wiki pages --
511 wiki_page_privacy_policy = privacypolicy
512 wiki_page_user_agreement = useragreement
a6c252e @chromakode Display privacy philosophy on registration form.
chromakode authored
513 wiki_page_registration_info = registration_info
4b53396 @chromakode Privacy policy and user agreement viewer.
chromakode authored
514
6101c1a @chromakode stats: Only track timings for interesting templates.
chromakode authored
515 # Template names to record render timings for
516 timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
517
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
518 [server:main]
519 use = egg:Paste#http
520 host = 0.0.0.0
e683889 @jedberg New Features
jedberg authored
521 port = %(http_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
522
523 [app:main]
524 use = egg:r2
525 cache_dir = %(here)s/data
526 beaker.session_key = r2
527 beaker.session_secret = somesecret
528 #lang = en
529
530 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
531 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
532 # execute malicious code after an exception is raised.
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
533 #set debug = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
534
3574a64 @spladug Add an optional paste-filter compatible Gzipping middleware.
spladug authored
535 filter-with = gzip
536
537 [filter:gzip]
538 use = egg:r2#gzip
539 compress_level = 6
540 min_size = 800
541
775c795 @spladug Use WebError Reporter objects for exception logging.
spladug authored
542 [loggers]
543 keys = root, pycountry
544
545 [logger_root]
546 level = WARNING
547 handlers = console
548
549 [logger_pycountry]
550 level = CRITICAL
551 qualname = pycountry.db
552 handlers =
553
554 [handlers]
555 keys = console
556
557 [handler_console]
558 class = StreamHandler
559 args = (sys.stdout,)
560
561 [formatters]
562 keys = reddit
563
564 [formatter_reddit]
565 format = %(message)s
566
f495dad @spladug Add ZooKeeper-based dynamic configuration system.
spladug authored
567 # the following configuration section makes up the "live" config. if zookeeper
568 # is enabled, then this configuration will be found by the app in zookeeper. to
569 # write it to zookeeper, use the writer script: scripts/write_live_config.
570 [live_config]
4a4543b @spladug Move frontpage_dart option into new live config.
spladug authored
571 # make frontpage 100% dart
572 frontpage_dart = false
c337280 @spladug fastlane: Separate votes on some links and their comments.
spladug authored
573 # links that get their own infrastructure (comma-delimited list of id36s)
574 fastlane_links =
98d0ca5 @chromakode Move announcement_message to ZooKeeper.
chromakode authored
575 # a message placed in the infobar
576 announcement_message =
79ccaca @chromakode Add support for a live-config sidebar info message.
chromakode authored
577 # an info message placed in the sidebar
578 sidebar_message =
ae2b646 @chromakode Add gold-specific sidebar message.
chromakode authored
579 # an info message placed in the sidebar for gold users
580 gold_sidebar_message =
b1ed5e0 @shlurbee Move sr discovery links to zookeeper
shlurbee authored
581 # spotlight links for subreddit discovery
582 sr_discovery_links =
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
583 # probability of the subreddit suggester showing up in the spotlight box
584 # for users that have at some point edited their subscriptions:
613b27d @chromakode Add subreddit interest discovery bar.
chromakode authored
585 spotlight_interest_sub_p = .05
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
586 # and for users that have not ever subscribed:
613b27d @chromakode Add subreddit interest discovery bar.
chromakode authored
587 spotlight_interest_nosub_p = .1
2868e65 Randomly assign comment tree implementation to new links.
Logan Hanks authored
588 # map of comment tree version to how frequently it should be chosen relative to
589 # the others
43e2900 Update example.ini to enable only comment tree v1.
Logan Hanks authored
590 comment_tree_version_weights = 1:1, 2:0
4024dd5 @chromakode Markdownify goldvertisements.
chromakode authored
591 # markdown message blurbs for the front page sidebar gold ad.
592 # use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
4d86ad0 @chromakode Add small front page gold advertisement.
chromakode authored
593 goldvertisement_blurbs = "Make reddit better. Try %(reddit_gold)." "This year, give the gift of %(reddit_gold)s.|(and you should probably also give some other, better gifts)"
099b6af @chromakode Whisper sweet nothings to the goldmembers.
chromakode authored
594 goldvertisement_has_gold_blurbs = "**&ldquo;Exquisite!&rdquo;** \nGrab a drink and join us in [the lounge](/r/lounge)."
Something went wrong with that request. Please try again.