Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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