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