Skip to content
Newer
Older
100755 474 lines (408 sloc) 14.5 KB
abe385c @kemitche Add note to top of generated ini files
kemitche authored Mar 16, 2012
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 Jun 17, 2008
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 May 17, 2010
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 Jun 18, 2008
20 debug = true
8b5cad8 @chromakode Move toggle for template caching into its own .ini flag.
chromakode authored Jan 25, 2012
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 May 17, 2010
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 Jun 18, 2008
27 uncompressedJS = true
e683889 @jedberg New Features
jedberg authored May 17, 2010
28 # enable/disable verbose SQL printing
9813d94 @jedberg Make reddit compatible with Postgres 8.3 and Python 2.6
jedberg authored Apr 29, 2009
29 sqlprinting = false
e683889 @jedberg New Features
jedberg authored May 17, 2010
30 # enable/disable writing errors as they occur to a rabbit-mq queue
a402d48 New features:
Mike authored May 3, 2010
31 exception_logging = false
e683889 @jedberg New Features
jedberg authored May 17, 2010
32 # whether to print a "reddit app started" message at start"
5ef76b9 @KeyserSosa New features:
KeyserSosa authored May 3, 2010
33 log_start = true
e683889 @jedberg New Features
jedberg authored May 17, 2010
34 # enable/disable logging for amqp/rabbitmq
35 amqp_logging = false
253c473 @jedberg * Add services and scripts to public repos for ease of reddit instal…
jedberg authored May 17, 2010
36 # emergency measures: makes the site read only
37 read_only_mode = false
68a06c5 @spladug April 2011 Merge
spladug authored Apr 14, 2011
38 # global switch for wiki write permissions
39 allow_wiki_editing = true
4758ac8 @spladug Make read-only mode slightly less frustrating.
spladug authored Jul 22, 2011
40 # a modified read only mode used for cache shown during heavy load 503s
41 heavy_load_mode = false
253c473 @jedberg * Add services and scripts to public repos for ease of reddit instal…
jedberg authored May 17, 2010
42
0cf053f @chromakode Add blank announcement_message to example.ini.
chromakode authored Oct 8, 2011
43 # a message placed in the infobar
44 announcement_message =
a86261f @andre-d Add a contextual description metatag for scrapers.
andre-d authored Aug 8, 2011
45 # the site's tagline, used in the title and description
46 short_description = open source is awesome
47
e683889 @jedberg New Features
jedberg authored May 17, 2010
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
5721e46 @spladug Add validator that checks a secret key or admin cookie.
spladug authored Sep 15, 2011
55 # used for authenticating admin API calls w/o cookie
56 ADMINSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5ef76b9 @KeyserSosa New features:
KeyserSosa authored May 3, 2010
57
c209cc2 @kemitche Switch to cloudsearch as primary search provider
kemitche authored Mar 7, 2012
58 CLOUDSEARCH_SEARCH_API =
59 CLOUDSEARCH_DOC_API =
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
60
d411cd5 Added support for disabling adds via config file
westmaas authored Nov 6, 2010
61 # -- feature toggles --
62 disable_ads = false
92fdd42 Added option to disable captcha verification
gabe authored May 16, 2011
63 disable_captcha = false
1ecb427 @andre-d Add an option to disable rate limiting. For testing.
andre-d authored Aug 10, 2011
64 disable_ratelimit = false
d411cd5 Added support for disabling adds via config file
westmaas authored Nov 6, 2010
65
e683889 @jedberg New Features
jedberg authored May 17, 2010
66 # -- important settings --
67 # the domain that this app serves itself up as
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
68 domain = reddit.local
68a06c5 @spladug April 2011 Merge
spladug authored Apr 14, 2011
69 # the short domain (like redd.it)
70 shortdomain =
e683889 @jedberg New Features
jedberg authored May 17, 2010
71 # if you use www for the old-timey feel, put it here
72 domain_prefix =
73 # the user used for "system" operations and messages
74 system_user = reddit
75 # list of admin accounts
76 admins = reddit
77 # the default subreddit for submissions
78 default_sr = reddit.com
e6178be Make default header image URL configurable.
westmaas authored May 16, 2011
79 # default header image url
50a5daa @spladug Allow static files to be served from other domains.
spladug authored Oct 19, 2011
80 default_header_url = reddit.com.header.png
e683889 @jedberg New Features
jedberg authored May 17, 2010
81
82 # time for the page cache (for unlogged in users)
83 page_cache_time = 90
84
85 # default localization for strings (when using python's locale.format)
86 locale = C
87 # default site language (two letter character code)
88 lang = en
c280c6a @chromakode Fix handling of an unset language override.
chromakode authored Sep 20, 2011
89 lang_override =
e7b672d @spladug Replace proxy_addr with option to trust proxies in 10.0.0.0/8.
spladug authored Jan 20, 2012
90 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
91 # set X-forwarded-for and set this to true
92 trust_local_proxies = false
e683889 @jedberg New Features
jedberg authored May 17, 2010
93 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
94 ip_hash =
95 # timezone for storing
96 timezone = UTC
97 # timezone for the database
98 display_timezone = MST
99 # secret key for accessing /shutdown
100 shutdown_secret = 12345
b847757 @chromakode Use cross domain https for slightly safer login.
chromakode authored Oct 6, 2011
101 # https api endpoint (must be g.domain or a subdomain of g.domain)
102 https_endpoint =
e683889 @jedberg New Features
jedberg authored May 17, 2010
103 # name of the cookie to drop with login information
104 login_cookie = reddit_session
33b15bc @spladug Split the admin cookie out from the session cookie.
spladug authored Mar 12, 2012
105 # name of the admin cookie
106 admin_cookie = reddit_admin
a311805 @spladug Switch to bcrypt for password hashing.
spladug authored Oct 20, 2011
107 # the work factor for bcrypt, increment this every time computers double in
108 # speed. don't worry, changing this won't break old passwords
109 bcrypt_work_factor = 12
e683889 @jedberg New Features
jedberg authored May 17, 2010
110
111 # fraction of requests to pass into the queue-based usage sampler
112 usage_sampling = 0.
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
113
e683889 @jedberg New Features
jedberg authored May 17, 2010
114 # account used for default feedback messaging (can be #subreddit)
115 admin_message_acct = reddit
116
117
118 # -- caching options --
119 # data cache (used for caching Thing objects)
120 num_mc_clients = 5
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
121 memcaches = 127.0.0.1:11211
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
122 stalecaches =
e683889 @jedberg New Features
jedberg authored May 17, 2010
123 # render caches (the second is "remote" and the local is optional but in the same format)
124 local_rendercache =
ae6ba7a @spez added a separate set of memcaches for the render cache
spez authored Dec 16, 2008
125 rendercaches = 127.0.0.1:11211
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored Dec 1, 2009
126
67814d5 @ketralnis Features:
ketralnis authored May 3, 2010
127 # -- permacache options --
128 # permacache is memcaches -> cassanda -> memcachedb
129 # memcaches that sit in front of cassandra
130 permacache_memcaches = 127.0.0.1:11211
131 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f @KeyserSosa Upgrade Instructions
KeyserSosa authored Jun 15, 2010
132 cassandra_seeds = 127.0.0.1:9160
fcd3f3b @spladug Make cassandra connection pool size configurable.
spladug authored Feb 2, 2012
133 # number of connections to keep open to the cassandra ring
134 cassandra_pool_size = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored Jul 21, 2010
135 # read/write consistency levels for Cassandra
136 cassandra_rcl = ONE
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
137 cassandra_wcl = ONE
532be3f @spladug Allow Cassandra models to choose a connection pool.
spladug authored Nov 30, 2011
138 # name of default connection pool to use when _connection_pool not specified
139 cassandra_default_pool = main
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored Dec 1, 2009
140
e683889 @jedberg New Features
jedberg authored May 17, 2010
141 # -- url cache options --
142 url_caches = 127.0.0.1:11211
143 # cassandra hosts. one of these will be chosen at random by pycassa
144 url_seeds =
145
146
147 # caches for storing number of times a link is rendered
148 incr_cache = udp:localhost:11211
149 incr_caches = localhost:11211
150 # recommender cache (depricated)
151 rec_cache = 127.0.0.1:11211
152
153 ## -- traffic tracking urls --
93a65a6 @spladug Move onload out of the app.
spladug authored Oct 3, 2011
154 # domain to send tracking requests (see scripts/tracker.py)
155 tracking_domain = reddit.local
e683889 @jedberg New Features
jedberg authored May 17, 2010
156 # image to render to track pageviews
157 tracker_url = /static/pixel.png
158 # images to render to track sponsored links
159 adtracker_url = /static/pixel.png
160 # image to render to track the ad frame
161 adframetracker_url = http://pixel.reddit.com/pixel/of_defenestration.png
162 # open redirector to bounce clicks off of on sponsored links for tracking
163 clicktracker_url = /static/pixel.png
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
164 # new pixel
165 newtracker_url =
e683889 @jedberg New Features
jedberg authored May 17, 2010
166
167 # amqp
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored Dec 1, 2009
168 amqp_host = localhost:5672
e683889 @jedberg New Features
jedberg authored May 17, 2010
169 amqp_user = reddit
170 amqp_pass = reddit
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored Dec 1, 2009
171 amqp_virtual_host = /
172
e683889 @jedberg New Features
jedberg authored May 17, 2010
173 ## -- database setup --
174 # list of all databases named in the subsequent table
175 databases = main, comment, vote, email, authorize, award, hc
2a5f891 @spez Moved database configuration from databases.py to the ini.
spez authored Jan 28, 2009
176
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
177 db_user = reddit
178 db_pass = password
179 db_port = 5432
180 db_pool_size = 3
181 db_pool_overflow_size = 3
182
183 #db name db host user, pass, port, conn, overflow_conn
184 main_db = reddit, 127.0.0.1, *, *, *, *, *
185 comment_db = reddit, 127.0.0.1, *, *, *, *, *
186 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
187 vote_db = reddit, 127.0.0.1, *, *, *, *, *
188 email_db = reddit, 127.0.0.1, *, *, *, *, *
189 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
190 award_db = reddit, 127.0.0.1, *, *, *, *, *
191 hc_db = reddit, 127.0.0.1, *, *, *, *, *
e683889 @jedberg New Features
jedberg authored May 17, 2010
192
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
193 hardcache_categories = *:hc:hc
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored Oct 18, 2010
194
e683889 @jedberg New Features
jedberg authored May 17, 2010
195 # this setting will prefix all of the table names
2a5f891 @spez Moved database configuration from databases.py to the ini.
spez authored Jan 28, 2009
196 db_app_name = reddit
e683889 @jedberg New Features
jedberg authored May 17, 2010
197 # are we allowed to create tables?
2a5f891 @spez Moved database configuration from databases.py to the ini.
spez authored Jan 28, 2009
198 db_create_tables = True
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored Mar 2, 2012
199 # are we allowed to write at all?
200 disallow_db_writes = False
2a5f891 @spez Moved database configuration from databases.py to the ini.
spez authored Jan 28, 2009
201
202 type_db = main
203 rel_type_db = main
5ef76b9 @KeyserSosa New features:
KeyserSosa authored May 3, 2010
204 hardcache_db = main
2a5f891 @spez Moved database configuration from databases.py to the ini.
spez authored Jan 28, 2009
205
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored Mar 3, 2012
206 # definitions of what each table is (probably shouldn't change in .update files)
207 # things require no extra info. relation is followed by the names of the related tables
208 db_table_link = thing
209 db_table_account = thing
210 db_table_message = thing
211 db_table_savehide = relation, account, link
212 db_table_click = relation, account, link
213 db_table_comment = thing
214 db_table_subreddit = thing
215 db_table_srmember = relation, subreddit, account
216 db_table_friend = relation, account, account
217 db_table_vote_account_link = relation, account, link
218 db_table_vote_account_comment = relation, account, comment
219 db_table_inbox_account_comment = relation, account, comment
220 db_table_inbox_account_message = relation, account, message
221 db_table_moderatorinbox = relation, subreddit, message
222 db_table_report_account_link = relation, account, link
223 db_table_report_account_comment = relation, account, comment
224 db_table_report_account_message = relation, account, message
225 db_table_report_account_subreddit = relation, account, subreddit
226 db_table_award = thing
227 db_table_trophy = relation, account, award
228 db_table_jury_account_link = relation, account, link
229 db_table_ad = thing
230 db_table_adsr = relation, ad, subreddit
231 db_table_flair = relation, subreddit, account
09dbd49 @shlurbee Update config with new promocampaign thing table
shlurbee authored May 24, 2012
232 db_table_promocampaign = thing
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored Mar 3, 2012
233
234 # which servers to find each table on (likely to change in .update files)
235 # first server listed is assumed to be the master, all others are read-only slaves
236 # additionally, a "!avoid_master" flag may be added to specify that reads should use the slaves
237 db_servers_link = main, main
238 db_servers_account = main
239 db_servers_message = main
240 db_servers_savehide = main
241 db_servers_click = main
242 db_servers_comment = comment
243 db_servers_subreddit = comment
244 db_servers_srmember = comment
245 db_servers_friend = comment
246 db_servers_vote_account_link = vote
247 db_servers_vote_account_comment = vote
248 db_servers_inbox_account_comment = main
249 db_servers_inbox_account_message = main
250 db_servers_moderatorinbox = main
251 db_servers_report_account_link = main
252 db_servers_report_account_comment = comment
253 db_servers_report_account_message = main
254 db_servers_report_account_subreddit = main
255 db_servers_award = award
256 db_servers_trophy = award
257 db_servers_jury_account_link = main
258 db_servers_ad = main
259 db_servers_adsr = main
260 db_servers_flair = main
09dbd49 @shlurbee Update config with new promocampaign thing table
shlurbee authored May 25, 2012
261 db_servers_promocampaign = main
1861a04 fixed sorting issue where the global sorts were being overwritten. ad…
Steve Huffman authored Aug 22, 2008
262
e683889 @jedberg New Features
jedberg authored May 17, 2010
263
264 ## -- traffic analytics --
265 # google analytics token
266 googleanalytics =
267 # machine to get traffic metrics from
268 traffic_url = http://localhost:8010/tracker/pickle/
269 # secret used for talking to the traffic machine
270 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
271
272
273 ## -- Self-service sponsored link stuff --
274 # (secure) payment domain
172f869 @chromakode Add an example subdomain for payment_domain in example.ini.
chromakode authored Nov 8, 2011
275 payment_domain = https://pay.reddit.local/
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
276 ad_domain = http://reddit.local
277 allowed_pay_countries = United States, United Kingdom, Canada
253c473 @jedberg * Add services and scripts to public repos for ease of reddit instal…
jedberg authored May 17, 2010
278 sponsors =
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
279
280 # authorize.net credentials (blank authorizenetapi to disable)
281 authorizenetapi =
282 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 @jedberg New Features
jedberg authored May 17, 2010
283 authorizenetname =
284 authorizenetkey =
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
285
e683889 @jedberg New Features
jedberg authored May 17, 2010
286 min_promote_bid = 20
287 max_promote_bid = 9999
288 min_promote_future = 2
289
290 # -- spreadshirt --
291 spreadshirt_url =
292 spreadshirt_vendor_id =
293 spreadshirt_min_font = 42
294 spreadshirt_max_width = 620
295 spreadshirt_test_font =
296
297
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
298 ###
299 # Other magic settings
300 ###
301
e683889 @jedberg New Features
jedberg authored May 17, 2010
302 # list of cnames allowed to render as reddit.com without a frame
303 authorized_cnames =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
304
e683889 @jedberg New Features
jedberg authored May 17, 2010
305 # -- query cache settings --
306 num_query_queue_workers = 5
307 query_queue_worker = http://cslowe.local:8000
308 enable_doquery = True
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
309 use_query_cache = True
e683889 @jedberg New Features
jedberg authored May 17, 2010
310 write_query_queue = True
fbe867e @spladug Implement new lockless query cache.
spladug authored Jan 30, 2012
311 querycache_prune_chance = 0.05
1861a04 fixed sorting issue where the global sorts were being overwritten. ad…
Steve Huffman authored Aug 22, 2008
312
e683889 @jedberg New Features
jedberg authored May 17, 2010
313 # -- stylesheet editor --
314 # disable custom stylesheets
315 css_killswitch = False
316 # list of "trusted" domains that can be referenced in url()
317 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
318 # max number of uploaded images per subreddit
319 max_sr_images = 50
320 # default stylesheet and it's rtl version
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
321 stylesheet = reddit.css
e683889 @jedberg New Features
jedberg authored May 17, 2010
322 stylesheet_rtl = reddit-rtl.css
323 # location of the static directory
324 static_path = /static/
50a5daa @spladug Allow static files to be served from other domains.
spladug authored Oct 19, 2011
325 # if set, these are the domains used for static files served over http and https
326 # if not set, no domain will be specified
327 static_domain =
328 static_secure_domain =
329 # if this is true, append .gz to CSS and JS files served from the static domain
330 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
331 static_pre_gzipped = false
332 static_secure_pre_gzipped = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
333
7fff900 @ketralnis February 2011 Merge
ketralnis authored Feb 23, 2011
334 # make frontpage 100% dart
335 frontpage_dart = false
336
e683889 @jedberg New Features
jedberg authored May 17, 2010
337 # -- translator UI --
338 # enable/disable access to the translation UI in /admin/i18n
339 translator = true
340 # reddit runs the translator UI on a different instance with a
341 # password to login. These settings are used when generating messages
342 # to translators to tell them their credentials
343 translator_username =
344 translator_password =
6bcef00 @ketralnis 1. Allow a reddit to have a cname, like www.proggit.com, that renders
ketralnis authored Aug 26, 2008
345
e683889 @jedberg New Features
jedberg authored May 17, 2010
346 # subreddit used for DMCA takedowns
5ef76b9 @KeyserSosa New features:
KeyserSosa authored May 3, 2010
347 takedown_sr = _takedowns
e683889 @jedberg New Features
jedberg authored May 17, 2010
348 # png compressor
349 png_optimizer = /usr/bin/env optipng
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
350
e683889 @jedberg New Features
jedberg authored May 17, 2010
351 # -- search --
352 # where is solor?
353 solr_url =
354 # how long do we cache search results (in seconds)
f6fbb05 @ketralnis Cache solr query results for a short time. Speeds up domain listings …
ketralnis authored Feb 27, 2009
355 solr_cache_time = 300
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
356
e683889 @jedberg New Features
jedberg authored May 17, 2010
357 # Just a list of words. Used by errlog.py to make up names for new errors.
358 words_file = /usr/dict/words
2869eaf @ketralnis New features:
ketralnis authored May 3, 2010
359
e683889 @jedberg New Features
jedberg authored May 17, 2010
360 # -- media stuff --
361 # user agent for the scraper
362 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 Oct 25, 2011
363
364 # The storage method to use for media
365 # Options:
366 # s3 - Uses Amazon S3 to upload media to buckets
367 media_store = s3
368
e683889 @jedberg New Features
jedberg authored May 17, 2010
369 # your s3 credentials
370 S3KEY_ID =
371 S3SECRET_KEY =
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored Oct 25, 2011
372
373 # This bucket is used for old media, new installs may leave this blank
374 s3_old_thumb_bucket =
375
376 # May be one bucket, or many buckets seperated by commas
377 s3_media_buckets =
378
379 # Store direct urls for images, rather than buckets
380 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
381 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
382 # false: http://mybucket/helloworld.jpg
383 s3_media_direct = true
384
e683889 @jedberg New Features
jedberg authored May 17, 2010
385 media_domain = localhost
4b9fee7 @screeley Use an API key for the embed.ly API.
screeley authored Aug 2, 2011
386 # Embedly API Key
387 embedly_api_key =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
388
e683889 @jedberg New Features
jedberg authored May 17, 2010
389 # -- limits --
390 # rate limiter duration (minutes)
391 RATELIMIT = 10
392 # minimum display karma
393 MIN_UP_KARMA = 1
394 MIN_RATE_LIMIT_KARMA = 10
395 MIN_RATE_LIMIT_COMMENT_KARMA = 1
396 QUOTA_THRESHOLD = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored Jul 22, 2010
397 # Links and comments older than this many days qualify for historic preservation
398 REPLY_AGE_LIMIT = 180
68a06c5 @spladug April 2011 Merge
spladug authored Apr 14, 2011
399 # Links and comments older than this many days can't be voted on
400 VOTE_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored Nov 6, 2010
401 # minimum age, in days, of an account to be eligible to create a community
402 min_membership_create_community = 30
a42505c @spladug Keep admin cookie around if actively used.
spladug authored Mar 14, 2012
403 # the maximum life of an admin cookie (seconds)
404 ADMIN_COOKIE_TTL = 32400
405 # the maximum amount of idle time for an admin cookie (seconds)
406 ADMIN_COOKIE_MAX_IDLE = 900
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
407
e683889 @jedberg New Features
jedberg authored May 17, 2010
408 # min amount of karma to edit
409 WIKI_KARMA = 100
2de837f New help system and footer
Mike authored May 6, 2009
410
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
411 # time in days
412 MODWINDOW = 2
e683889 @jedberg New Features
jedberg authored May 17, 2010
413 HOT_PAGE_AGE = 1000
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
414
e683889 @jedberg New Features
jedberg authored May 17, 2010
415 # -- display options --
416 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored Jul 2, 2008
417 rising_period = 12 hours
e683889 @jedberg New Features
jedberg authored May 17, 2010
418 # max number of comments (default)
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored Oct 18, 2010
419 num_comments = 100
420 # max number of comments (non-gold)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
421 max_comments = 500
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored Oct 18, 2010
422 # max number of comments (gold)
423 max_comments_gold = 2500
e683889 @jedberg New Features
jedberg authored May 17, 2010
424 # list of reddits to auto-subscribe users to
425 automatic_reddits =
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored Jul 22, 2010
426 # special reddit that only reddit gold subscribers can use
427 lounge_reddit =
e683889 @jedberg New Features
jedberg authored May 17, 2010
428 # cutoff number of reddits to show unsubscribed users
0745f5b @KeyserSosa make 1/2 of the default reddits English reddits if the user hasn't se…
KeyserSosa authored May 13, 2009
429 num_default_reddits = 10
e683889 @jedberg New Features
jedberg authored May 17, 2010
430 # how deep do we go into the top listing when fetching /random
431 num_serendipity = 250
852b989 srbar updates
Mike authored Jul 16, 2009
432 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
433
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored Oct 18, 2010
434 # Conflate visits to a comment page that happen within this many
435 # seconds of each other
436 comment_visits_period = 600
437
e683889 @jedberg New Features
jedberg authored May 17, 2010
438 #user-agents to rate-limit
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
439 agents =
440
e683889 @jedberg New Features
jedberg authored May 17, 2010
441 # -- email --
442 # smtp server
443 smtp_server = localhost
444 # delay before allowing a link to be shared
445 new_link_share_delay = 30 seconds
446 # alerter emails
447 nerds_email = nerds@reddit.com
448 # share reply email
449 share_reply = noreply@reddit.com
450 # feedback email
451 feedback_email = reddit@gmail.com
7ce107f @KeyserSosa sharing
KeyserSosa authored Jul 17, 2008
452
51bcbfb @bsimpson63 Method _key_from_url() now returns case sensitive results for special…
bsimpson63 authored Jun 16, 2011
453 # Special case sensitive domains
454 case_sensitive_domains = i.imgur.com, youtube.com
455
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
456 [server:main]
457 use = egg:Paste#http
458 host = 0.0.0.0
e683889 @jedberg New Features
jedberg authored May 17, 2010
459 port = %(http_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
460
461 [app:main]
462 use = egg:r2
463 cache_dir = %(here)s/data
464 beaker.session_key = r2
465 beaker.session_secret = somesecret
466 #lang = en
467
468 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
469 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
470 # execute malicious code after an exception is raised.
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored Jul 22, 2010
471 #set debug = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored Jun 18, 2008
472
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored Oct 25, 2011
473
Something went wrong with that request. Please try again.