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