Skip to content
This repository
Newer
Older
100644 548 lines (477 sloc) 17.6 kb
abe385cc »
2012-03-16 Add note to top of generated ini files
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
4778b17e »
2008-06-17 initial checkin
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]
e6838895 »
2010-05-17 New Features
17
18 # -- debug and configuation flags --
19 # global debug flag -- displays pylons stacktrace rather than 500 page on error when true
4778b17e »
2008-06-17 initial checkin
20 debug = true
8b5cad86 »
2012-01-25 Move toggle for template caching into its own .ini flag.
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
e6838895 »
2010-05-17 New Features
25 # use uncompressed static files (out of /static/js and /static/css)
26 # rather than compressed files out of /static (for development if true)
4778b17e »
2008-06-17 initial checkin
27 uncompressedJS = true
e6838895 »
2010-05-17 New Features
28 # enable/disable verbose SQL printing
9813d947 »
2009-04-29 Make reddit compatible with Postgres 8.3 and Python 2.6
29 sqlprinting = false
e6838895 »
2010-05-17 New Features
30 # enable/disable writing errors as they occur to a rabbit-mq queue
a402d48d »
2010-05-03 New features:
31 exception_logging = false
e6838895 »
2010-05-17 New Features
32 # whether to print a "reddit app started" message at start"
5ef76b96 »
2010-05-03 New features:
33 log_start = true
e6838895 »
2010-05-17 New Features
34 # enable/disable logging for amqp/rabbitmq
35 amqp_logging = false
253c4730 »
2010-05-17 * Add services and scripts to public repos for ease of reddit instal…
36 # emergency measures: makes the site read only
37 read_only_mode = false
4758ac8d »
2011-07-22 Make read-only mode slightly less frustrating.
38 # a modified read only mode used for cache shown during heavy load 503s
39 heavy_load_mode = false
41692267 »
2012-07-22 Make profiling transparent and aggregatable.
40 # directory to write cProfile stats dumps to (disabled if not set)
41 profile_directory =
253c4730 »
2010-05-17 * Add services and scripts to public repos for ease of reddit instal…
42
0cf053f4 »
2011-10-08 Add blank announcement_message to example.ini.
43 # a message placed in the infobar
44 announcement_message =
a86261f3 »
2011-08-08 Add a contextual description metatag for scrapers.
45 # the site's tagline, used in the title and description
46 short_description = open source is awesome
47
e6838895 »
2010-05-17 New Features
48 # -- SECRETS! <-- update these first! --
49 # global secret
50 SECRET = abcdefghijklmnopqrstuvwxyz0123456789
51 # secret for making the modhash
52 MODSECRET = abcdefghijklmnopqrstuvwxyz0123456789
53 # secret for /prefs/feeds
54 FEEDSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5721e468 »
2011-09-15 Add validator that checks a secret key or admin cookie.
55 # used for authenticating admin API calls w/o cookie
56 ADMINSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5ef76b96 »
2010-05-03 New features:
57
c209cc2f »
2012-03-07 Switch to cloudsearch as primary search provider
58 CLOUDSEARCH_SEARCH_API =
59 CLOUDSEARCH_DOC_API =
213dd1e0 »
2012-06-14 Add CLOUDSEARCH_SUBREDDIT endpoints to example.ini
60 CLOUDSEARCH_SUBREDDIT_SEARCH_API =
61 CLOUDSEARCH_SUBREDDIT_DOC_API =
7fff900b »
2011-02-23 February 2011 Merge
62
a6da54dc »
2012-10-16 Add missing gold checkout stuff to example.ini.
63 # for gold purchases.
64 PAYPAL_URL = https://www.paypal.com/cgi-bin/webscr
65 PAYPAL_SECRET =
66 PAYPAL_BUTTONID_ONETIME_BYMONTH =
67 PAYPAL_BUTTONID_ONETIME_BYYEAR =
68 PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
69 PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
70 PAYPAL_BUTTONID_CREDDITS_BYMONTH =
71 PAYPAL_BUTTONID_CREDDITS_BYYEAR =
72
73 GOOGLE_ID =
74 GOOGLE_KEY =
75 GOOGLE_REQUEST_URL = https://checkout.google.com/api/checkout/v2/request/Merchant/
76 GOOGLE_REPORT_URL = https://checkout.google.com/api/checkout/v2/reports/Merchant/
77
d411cd55 »
2010-11-06 Added support for disabling adds via config file
78 # -- feature toggles --
79 disable_ads = false
92fdd422 »
2011-05-16 Added option to disable captcha verification
80 disable_captcha = false
1ecb427f »
2011-08-10 Add an option to disable rate limiting. For testing.
81 disable_ratelimit = false
1db68ce6 »
2012-07-22 Require two-factor authentication to enable admin mode.
82 disable_require_admin_otp = false
d411cd55 »
2010-11-06 Added support for disabling adds via config file
83
e6838895 »
2010-05-17 New Features
84 # -- important settings --
85 # the domain that this app serves itself up as
7fff900b »
2011-02-23 February 2011 Merge
86 domain = reddit.local
68a06c56 »
2011-04-14 April 2011 Merge
87 # the short domain (like redd.it)
88 shortdomain =
e6838895 »
2010-05-17 New Features
89 # if you use www for the old-timey feel, put it here
90 domain_prefix =
7118bde4 »
2012-06-27 Turn CNAMEs into a simple redirect.
91 # subdomains that don't need special processing
92 reserved_subdomains = www, ssl
e6838895 »
2010-05-17 New Features
93 # the user used for "system" operations and messages
94 system_user = reddit
95 # list of admin accounts
96 admins = reddit
97 # the default subreddit for submissions
98 default_sr = reddit.com
e6178bed »
2011-05-16 Make default header image URL configurable.
99 # default header image url
50a5daa6 »
2011-10-19 Allow static files to be served from other domains.
100 default_header_url = reddit.com.header.png
e6838895 »
2010-05-17 New Features
101
102 # time for the page cache (for unlogged in users)
103 page_cache_time = 90
a8c6631c »
2012-08-28 Comment Pane Cache: make cache lifetime configurable in INI.
104 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
105 commentpane_cache_time = 120
e6838895 »
2010-05-17 New Features
106
107 # default localization for strings (when using python's locale.format)
108 locale = C
109 # default site language (two letter character code)
01146c30 »
2012-08-13 Remove unused r2.po and friends from repo
110 site_lang = en
c280c6ac »
2011-09-20 Fix handling of an unset language override.
111 lang_override =
e7b672d6 »
2012-01-20 Replace proxy_addr with option to trust proxies in 10.0.0.0/8.
112 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
113 # set X-forwarded-for and set this to true
114 trust_local_proxies = false
e6838895 »
2010-05-17 New Features
115 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
116 ip_hash =
117 # timezone for storing
118 timezone = UTC
119 # timezone for the database
120 display_timezone = MST
121 # secret key for accessing /shutdown
122 shutdown_secret = 12345
b8477570 »
2011-10-06 Use cross domain https for slightly safer login.
123 # https api endpoint (must be g.domain or a subdomain of g.domain)
124 https_endpoint =
e6838895 »
2010-05-17 New Features
125 # name of the cookie to drop with login information
126 login_cookie = reddit_session
33b15bc2 »
2012-03-12 Split the admin cookie out from the session cookie.
127 # name of the admin cookie
128 admin_cookie = reddit_admin
8dfd73b1 »
2012-07-22 Add framework for RFC-6238: Time-Based One Time Password Algorithm.
129 # name of the otp cookie
130 otp_cookie = reddit_otp
2a8cc84f »
2012-08-29 Refactor user authentication to be more modular.
131 # how to authenticate users. see r2/lib/authentication.py for options
132 authentication_provider = cookie
a311805c »
2011-10-20 Switch to bcrypt for password hashing.
133 # the work factor for bcrypt, increment this every time computers double in
134 # speed. don't worry, changing this won't break old passwords
135 bcrypt_work_factor = 12
e6838895 »
2010-05-17 New Features
136
137 # fraction of requests to pass into the queue-based usage sampler
138 usage_sampling = 0.
4778b17e »
2008-06-17 initial checkin
139
987be0d9 »
2012-08-06 Replace reference to #subreddit with /r/subreddit
140 # account used for default feedback messaging (can be /r/subreddit)
e6838895 »
2010-05-17 New Features
141 admin_message_acct = reddit
142
143
144 # -- caching options --
145 # data cache (used for caching Thing objects)
146 num_mc_clients = 5
4778b17e »
2008-06-17 initial checkin
147 memcaches = 127.0.0.1:11211
ab039b47 »
2012-05-21 Use a different set of memcaches for locking.
148 # caches to use for locking
149 lockcaches = 127.0.0.1:11211
7fff900b »
2011-02-23 February 2011 Merge
150 stalecaches =
e6838895 »
2010-05-17 New Features
151 # render caches (the second is "remote" and the local is optional but in the same format)
152 local_rendercache =
ae6ba7a7 »
2008-12-16 added a separate set of memcaches for the render cache
153 rendercaches = 127.0.0.1:11211
bf9f43cc »
2009-12-01 Messaging/commenting
154
67814d54 »
2010-05-03 Features:
155 # -- permacache options --
156 # permacache is memcaches -> cassanda -> memcachedb
157 # memcaches that sit in front of cassandra
158 permacache_memcaches = 127.0.0.1:11211
159 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f6 »
2010-06-15 Upgrade Instructions
160 cassandra_seeds = 127.0.0.1:9160
fcd3f3bb »
2012-02-02 Make cassandra connection pool size configurable.
161 # number of connections to keep open to the cassandra ring
162 cassandra_pool_size = 5
0ae8f2fb »
2010-07-21 21 Jul 2010 merge
163 # read/write consistency levels for Cassandra
164 cassandra_rcl = ONE
7fff900b »
2011-02-23 February 2011 Merge
165 cassandra_wcl = ONE
532be3fe »
2011-11-30 Allow Cassandra models to choose a connection pool.
166 # name of default connection pool to use when _connection_pool not specified
167 cassandra_default_pool = main
bf9f43cc »
2009-12-01 Messaging/commenting
168
e6838895 »
2010-05-17 New Features
169 # -- url cache options --
170 url_caches = 127.0.0.1:11211
171 # cassandra hosts. one of these will be chosen at random by pycassa
172 url_seeds =
173
174
175 # caches for storing number of times a link is rendered
176 incr_cache = udp:localhost:11211
177 incr_caches = localhost:11211
178 # recommender cache (depricated)
179 rec_cache = 127.0.0.1:11211
180
181 ## -- traffic tracking urls --
93a65a6a »
2011-10-03 Move onload out of the app.
182 # domain to send tracking requests (see scripts/tracker.py)
183 tracking_domain = reddit.local
e6838895 »
2010-05-17 New Features
184 # image to render to track pageviews
185 tracker_url = /static/pixel.png
186 # images to render to track sponsored links
187 adtracker_url = /static/pixel.png
188 # image to render to track the ad frame
d433cb29 »
2012-07-25 Remove production pixel URL from example.ini.
189 adframetracker_url = /static/pixel.png
e6838895 »
2010-05-17 New Features
190 # open redirector to bounce clicks off of on sponsored links for tracking
191 clicktracker_url = /static/pixel.png
482e8644 »
2012-07-25 Fire a pixel for UI flow tracking of sub/unsubscribe.
192 # url to request to track interaction statistics
193 uitracker_url = /static/pixel.png
7fff900b »
2011-02-23 February 2011 Merge
194 # new pixel
195 newtracker_url =
e6838895 »
2010-05-17 New Features
196
197 # amqp
bf9f43cc »
2009-12-01 Messaging/commenting
198 amqp_host = localhost:5672
e6838895 »
2010-05-17 New Features
199 amqp_user = reddit
200 amqp_pass = reddit
bf9f43cc »
2009-12-01 Messaging/commenting
201 amqp_virtual_host = /
202
0b09f25b »
2012-07-30 Add basic support for ZooKeeper via Kazoo.
203 ## -- zookeeper --
204 # optional at the moment
205 zookeeper_connection_string =
206 zookeeper_username =
207 zookeeper_password =
208
e6838895 »
2010-05-17 New Features
209 ## -- database setup --
210 # list of all databases named in the subsequent table
9cd5fed5 »
2012-07-14 Add traffic to example.ini.
211 databases = main, comment, vote, email, authorize, award, hc, traffic
2a5f891a »
2009-01-28 Moved database configuration from databases.py to the ini.
212
7fff900b »
2011-02-23 February 2011 Merge
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, *, *, *, *, *
9cd5fed5 »
2012-07-14 Add traffic to example.ini.
228 traffic_db = reddit, 127.0.0.1, *, *, *, *, *
e6838895 »
2010-05-17 New Features
229
7fff900b »
2011-02-23 February 2011 Merge
230 hardcache_categories = *:hc:hc
37e2ba98 »
2010-10-18 * Combine cassandra clusters into a single one
231
e6838895 »
2010-05-17 New Features
232 # this setting will prefix all of the table names
2a5f891a »
2009-01-28 Moved database configuration from databases.py to the ini.
233 db_app_name = reddit
e6838895 »
2010-05-17 New Features
234 # are we allowed to create tables?
2a5f891a »
2009-01-28 Moved database configuration from databases.py to the ini.
235 db_create_tables = True
9f0ec951 »
2012-03-02 Split table definitions from db configuration.
236 # are we allowed to write at all?
237 disallow_db_writes = False
2a5f891a »
2009-01-28 Moved database configuration from databases.py to the ini.
238
239 type_db = main
240 rel_type_db = main
5ef76b96 »
2010-05-03 New features:
241 hardcache_db = main
2a5f891a »
2009-01-28 Moved database configuration from databases.py to the ini.
242
9f0ec951 »
2012-03-02 Split table definitions from db configuration.
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
09dbd494 »
2012-05-24 Update config with new promocampaign thing table
269 db_table_promocampaign = thing
9f0ec951 »
2012-03-02 Split table definitions from db configuration.
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
09dbd494 »
2012-05-24 Update config with new promocampaign thing table
298 db_servers_promocampaign = main
1861a04e »
2008-08-22 fixed sorting issue where the global sorts were being overwritten. ad…
299
e6838895 »
2010-05-17 New Features
300
301 ## -- traffic analytics --
302 # google analytics token
303 googleanalytics =
304 # machine to get traffic metrics from
305 traffic_url = http://localhost:8010/tracker/pickle/
306 # secret used for talking to the traffic machine
307 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
308
309
310 ## -- Self-service sponsored link stuff --
311 # (secure) payment domain
172f869e »
2011-11-08 Add an example subdomain for payment_domain in example.ini.
312 payment_domain = https://pay.reddit.local/
7fff900b »
2011-02-23 February 2011 Merge
313 ad_domain = http://reddit.local
314 allowed_pay_countries = United States, United Kingdom, Canada
253c4730 »
2010-05-17 * Add services and scripts to public repos for ease of reddit instal…
315 sponsors =
3fe8471c »
2012-10-25 Add email link to promo traffic help page
316 selfserve_support_email = selfservesupport@mydomain.com
7fff900b »
2011-02-23 February 2011 Merge
317
318 # authorize.net credentials (blank authorizenetapi to disable)
319 authorizenetapi =
320 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e6838895 »
2010-05-17 New Features
321 authorizenetname =
322 authorizenetkey =
7fff900b »
2011-02-23 February 2011 Merge
323
e6838895 »
2010-05-17 New Features
324 min_promote_bid = 20
325 max_promote_bid = 9999
326 min_promote_future = 2
327
328 # -- spreadshirt --
329 spreadshirt_url =
330 spreadshirt_vendor_id =
331 spreadshirt_min_font = 42
332 spreadshirt_max_width = 620
333 spreadshirt_test_font =
334
335
4778b17e »
2008-06-17 initial checkin
336 ###
337 # Other magic settings
338 ###
339
e6838895 »
2010-05-17 New Features
340 # list of cnames allowed to render as reddit.com without a frame
341 authorized_cnames =
4778b17e »
2008-06-17 initial checkin
342
e6838895 »
2010-05-17 New Features
343 # -- query cache settings --
344 num_query_queue_workers = 5
345 query_queue_worker = http://cslowe.local:8000
346 enable_doquery = True
7fff900b »
2011-02-23 February 2011 Merge
347 use_query_cache = True
e6838895 »
2010-05-17 New Features
348 write_query_queue = True
fbe867ef »
2012-01-30 Implement new lockless query cache.
349 querycache_prune_chance = 0.05
1861a04e »
2008-08-22 fixed sorting issue where the global sorts were being overwritten. ad…
350
e6838895 »
2010-05-17 New Features
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
4778b17e »
2008-06-17 initial checkin
359 stylesheet = reddit.css
e6838895 »
2010-05-17 New Features
360 stylesheet_rtl = reddit-rtl.css
361 # location of the static directory
362 static_path = /static/
50a5daa6 »
2011-10-19 Allow static files to be served from other domains.
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
b2ad131c »
2012-09-18 Subreddit CSS: Store subreddit CSS on S3 and minify it.
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 =
4778b17e »
2008-06-17 initial checkin
374
e6838895 »
2010-05-17 New Features
375 # -- translator UI --
376 # enable/disable access to the translation UI in /admin/i18n
377 translator = true
378 # reddit runs the translator UI on a different instance with a
379 # password to login. These settings are used when generating messages
380 # to translators to tell them their credentials
381 translator_username =
382 translator_password =
6bcef003 »
2008-08-26 1. Allow a reddit to have a cname, like www.proggit.com, that renders
383
e6838895 »
2010-05-17 New Features
384 # subreddit used for DMCA takedowns
5ef76b96 »
2010-05-03 New features:
385 takedown_sr = _takedowns
e6838895 »
2010-05-17 New Features
386 # png compressor
387 png_optimizer = /usr/bin/env optipng
f5b6839a »
2012-06-01 Losslessly optimize JPEGs.
388 # jpeg compressor
389 jpeg_optimizer =
4778b17e »
2008-06-17 initial checkin
390
e6838895 »
2010-05-17 New Features
391 # Just a list of words. Used by errlog.py to make up names for new errors.
392 words_file = /usr/dict/words
2869eaf8 »
2010-05-03 New features:
393
e6838895 »
2010-05-17 New Features
394 # -- media stuff --
395 # user agent for the scraper
396 useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
4653c16a »
2011-10-25 Split thumbnails and sr images across multiple buckets.
397
398 # The storage method to use for media
399 # Options:
400 # s3 - Uses Amazon S3 to upload media to buckets
401 media_store = s3
402
e6838895 »
2010-05-17 New Features
403 # your s3 credentials
404 S3KEY_ID =
405 S3SECRET_KEY =
4653c16a »
2011-10-25 Split thumbnails and sr images across multiple buckets.
406
407 # This bucket is used for old media, new installs may leave this blank
408 s3_old_thumb_bucket =
409
410 # May be one bucket, or many buckets seperated by commas
411 s3_media_buckets =
412
413 # Store direct urls for images, rather than buckets
414 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
415 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
416 # false: http://mybucket/helloworld.jpg
417 s3_media_direct = true
418
e6838895 »
2010-05-17 New Features
419 media_domain = localhost
4b9fee79 »
2011-08-02 Use an API key for the embed.ly API.
420 # Embedly API Key
421 embedly_api_key =
4778b17e »
2008-06-17 initial checkin
422
e6838895 »
2010-05-17 New Features
423 # -- limits --
424 # rate limiter duration (minutes)
425 RATELIMIT = 10
426 # minimum display karma
427 MIN_UP_KARMA = 1
428 MIN_RATE_LIMIT_KARMA = 10
429 MIN_RATE_LIMIT_COMMENT_KARMA = 1
430 QUOTA_THRESHOLD = 5
0ae8f2fb »
2010-07-21 21 Jul 2010 merge
431 # Links and comments older than this many days qualify for historic preservation
432 REPLY_AGE_LIMIT = 180
68a06c56 »
2011-04-14 April 2011 Merge
433 # Links and comments older than this many days can't be voted on
434 VOTE_AGE_LIMIT = 180
63d518f4 »
2010-11-06 Make min age for subreddit creation configurable.
435 # minimum age, in days, of an account to be eligible to create a community
436 min_membership_create_community = 30
a42505c5 »
2012-03-14 Keep admin cookie around if actively used.
437 # the maximum life of an admin cookie (seconds)
438 ADMIN_COOKIE_TTL = 32400
439 # the maximum amount of idle time for an admin cookie (seconds)
440 ADMIN_COOKIE_MAX_IDLE = 900
8dfd73b1 »
2012-07-22 Add framework for RFC-6238: Time-Based One Time Password Algorithm.
441 # the maximum life of an otp cookie
442 OTP_COOKIE_TTL = 604800
4778b17e »
2008-06-17 initial checkin
443
444 # time in days
445 MODWINDOW = 2
e6838895 »
2010-05-17 New Features
446 HOT_PAGE_AGE = 1000
4778b17e »
2008-06-17 initial checkin
447
e6838895 »
2010-05-17 New Features
448 # -- display options --
449 # how long to consider links eligible for the rising page
bcca862e »
2008-07-02 add media features
450 rising_period = 12 hours
e6838895 »
2010-05-17 New Features
451 # max number of comments (default)
37e2ba98 »
2010-10-18 * Combine cassandra clusters into a single one
452 num_comments = 100
453 # max number of comments (non-gold)
4778b17e »
2008-06-17 initial checkin
454 max_comments = 500
37e2ba98 »
2010-10-18 * Combine cassandra clusters into a single one
455 # max number of comments (gold)
456 max_comments_gold = 2500
e6838895 »
2010-05-17 New Features
457 # list of reddits to auto-subscribe users to
458 automatic_reddits =
0ae8f2fb »
2010-07-21 21 Jul 2010 merge
459 # special reddit that only reddit gold subscribers can use
460 lounge_reddit =
e6838895 »
2010-05-17 New Features
461 # cutoff number of reddits to show unsubscribed users
0745f5bf »
2009-05-13 make 1/2 of the default reddits English reddits if the user hasn't se…
462 num_default_reddits = 10
e6838895 »
2010-05-17 New Features
463 # how deep do we go into the top listing when fetching /random
464 num_serendipity = 250
852b989f »
2009-07-16 srbar updates
465 sr_dropdown_threshold = 15
4778b17e »
2008-06-17 initial checkin
466
37e2ba98 »
2010-10-18 * Combine cassandra clusters into a single one
467 # Conflate visits to a comment page that happen within this many
468 # seconds of each other
469 comment_visits_period = 600
470
e6838895 »
2010-05-17 New Features
471 #user-agents to rate-limit
4778b17e »
2008-06-17 initial checkin
472 agents =
a8d55dd7 »
2012-04-27 Set ratelimits on subreddits
473 # subreddit ratelimits
474 sr_banned_quota = 10000
db7b531a »
2012-10-01 Change moderator adding to an invite system.
475 sr_moderator_invite_quota = 10000
a8d55dd7 »
2012-04-27 Set ratelimits on subreddits
476 sr_contributor_quota = 10000
5fe4e997 »
2012-08-24 Wiki: Base wiki code
477 sr_wikibanned_quota = 10000
478 sr_wikicontributor_quota = 10000
a8d55dd7 »
2012-04-27 Set ratelimits on subreddits
479 sr_quota_time = 7200
4778b17e »
2008-06-17 initial checkin
480
e6838895 »
2010-05-17 New Features
481 # -- email --
482 # smtp server
483 smtp_server = localhost
484 # delay before allowing a link to be shared
485 new_link_share_delay = 30 seconds
486 # alerter emails
487 nerds_email = nerds@reddit.com
488 # share reply email
489 share_reply = noreply@reddit.com
490 # feedback email
491 feedback_email = reddit@gmail.com
7ce107f2 »
2008-07-17 sharing
492
51bcbfbc »
2011-06-16 Method _key_from_url() now returns case sensitive results for special…
493 # Special case sensitive domains
494 case_sensitive_domains = i.imgur.com, youtube.com
495
5fe4e997 »
2012-08-24 Wiki: Base wiki code
496 # Number of days to keep recent wiki revisions for
497 wiki_keep_recent_days = 7
498
499 # Max number of bytes for wiki pages
500 wiki_max_page_length_bytes = 262144
501
502 # Max wiki page name length
503 wiki_max_page_name_length = 128
504
505 # Max number of separators in a wiki page name
506 wiki_max_page_separators = 3
507
508 # Disable wiki editing and viewing for everyone except admins
509 wiki_disabled = false
510
ebab524e »
2012-08-24 Diff3: Added diff3 wrapper
511 # Location (directory) for temp files for diff3 merging
512 # Empty will use python default for temp files
5fe4e997 »
2012-08-24 Wiki: Base wiki code
513 # Pro tip: Use /dev/shm for in-memory diff3
514 diff3_temp_location =
ebab524e »
2012-08-24 Diff3: Added diff3 wrapper
515
4778b17e »
2008-06-17 initial checkin
516 [server:main]
517 use = egg:Paste#http
518 host = 0.0.0.0
e6838895 »
2010-05-17 New Features
519 port = %(http_port)s
4778b17e »
2008-06-17 initial checkin
520
521 [app:main]
522 use = egg:r2
523 cache_dir = %(here)s/data
524 beaker.session_key = r2
525 beaker.session_secret = somesecret
526 #lang = en
527
528 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
529 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
530 # execute malicious code after an exception is raised.
0ae8f2fb »
2010-07-21 21 Jul 2010 merge
531 #set debug = false
4778b17e »
2008-06-17 initial checkin
532
f495dad2 »
2012-07-30 Add ZooKeeper-based dynamic configuration system.
533 # the following configuration section makes up the "live" config. if zookeeper
534 # is enabled, then this configuration will be found by the app in zookeeper. to
535 # write it to zookeeper, use the writer script: scripts/write_live_config.
536 [live_config]
4a4543b3 »
2012-07-30 Move frontpage_dart option into new live config.
537 # make frontpage 100% dart
538 frontpage_dart = false
c337280e »
2012-08-27 fastlane: Separate votes on some links and their comments.
539 # links that get their own infrastructure (comma-delimited list of id36s)
540 fastlane_links =
b1ed5e0f »
2012-08-08 Move sr discovery links to zookeeper
541 # spotlight links for subreddit discovery
542 sr_discovery_links =
1b6423a0 »
2012-08-27 example.ini: Document subreddit suggester live config options.
543 # probability of the subreddit suggester showing up in the spotlight box
544 # for users that have at some point edited their subscriptions:
613b27de »
2012-08-16 Add subreddit interest discovery bar.
545 spotlight_interest_sub_p = .05
1b6423a0 »
2012-08-27 example.ini: Document subreddit suggester live config options.
546 # and for users that have not ever subscribed:
613b27de »
2012-08-16 Add subreddit interest discovery bar.
547 spotlight_interest_nosub_p = .1
Something went wrong with that request. Please try again.