Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 575 lines (499 sloc) 18.309 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 # whether to print a "reddit app started" message at start"
5ef76b9 Christopher Slowe New features:
KeyserSosa authored
31 log_start = true
e683889 Jeremy Edberg New Features
jedberg authored
32 # enable/disable logging for amqp/rabbitmq
33 amqp_logging = false
253c473 Jeremy Edberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
34 # emergency measures: makes the site read only
35 read_only_mode = false
4758ac8 Neil Williams Make read-only mode slightly less frustrating.
spladug authored
36 # a modified read only mode used for cache shown during heavy load 503s
37 heavy_load_mode = false
4169226 Neil Williams Make profiling transparent and aggregatable.
spladug authored
38 # directory to write cProfile stats dumps to (disabled if not set)
39 profile_directory =
775c795 Neil Williams Use WebError Reporter objects for exception logging.
spladug authored
40 # exception reporter objects to give to ErrorMiddleware (see log.py)
41 error_reporters =
42 # should we force a re-parse of this file with logging.config.fileConfig?
43 # older versions of uwsgi (<1.1) didn't do this step so we'd never log!
44 old_uwsgi_load_logging_config = false
253c473 Jeremy Edberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
45
a86261f Andre d Add a contextual description metatag for scrapers.
andre-d authored
46 # the site's tagline, used in the title and description
47 short_description = open source is awesome
48
e683889 Jeremy Edberg New Features
jedberg authored
49 # -- SECRETS! <-- update these first! --
50 # global secret
51 SECRET = abcdefghijklmnopqrstuvwxyz0123456789
52 # secret for /prefs/feeds
53 FEEDSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5721e46 Neil Williams Add validator that checks a secret key or admin cookie.
spladug authored
54 # used for authenticating admin API calls w/o cookie
55 ADMINSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5ef76b9 Christopher Slowe New features:
KeyserSosa authored
56
c209cc2 Keith Mitchell Switch to cloudsearch as primary search provider
kemitche authored
57 CLOUDSEARCH_SEARCH_API =
58 CLOUDSEARCH_DOC_API =
213dd1e Keith Mitchell Add CLOUDSEARCH_SUBREDDIT endpoints to example.ini
kemitche authored
59 CLOUDSEARCH_SUBREDDIT_SEARCH_API =
60 CLOUDSEARCH_SUBREDDIT_DOC_API =
7fff900 david king February 2011 Merge
ketralnis authored
61
a6da54d Neil Williams Add missing gold checkout stuff to example.ini.
spladug authored
62 # for gold purchases.
63 PAYPAL_SECRET =
64 PAYPAL_BUTTONID_ONETIME_BYMONTH =
65 PAYPAL_BUTTONID_ONETIME_BYYEAR =
66 PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
67 PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
68 PAYPAL_BUTTONID_CREDDITS_BYMONTH =
69 PAYPAL_BUTTONID_CREDDITS_BYYEAR =
70
71 GOOGLE_ID =
72 GOOGLE_KEY =
73 GOOGLE_REQUEST_URL = https://checkout.google.com/api/checkout/v2/request/Merchant/
74 GOOGLE_REPORT_URL = https://checkout.google.com/api/checkout/v2/reports/Merchant/
75
3d51107 Brian Simpson Stripe payments for reddit gold.
bsimpson63 authored
76 STRIPE_WEBHOOK_SECRET =
77 STRIPE_PUBLIC_KEY =
78 STRIPE_SECRET_KEY =
79
e301b34 Brian Simpson Coinbase payments for reddit gold.
bsimpson63 authored
80 COINBASE_WEBHOOK_SECRET =
81 COINBASE_BUTTONID_ONETIME_1MO =
82 COINBASE_BUTTONID_ONETIME_2MO =
83 COINBASE_BUTTONID_ONETIME_3MO =
84 COINBASE_BUTTONID_ONETIME_4MO =
85 COINBASE_BUTTONID_ONETIME_5MO =
86 COINBASE_BUTTONID_ONETIME_6MO =
87 COINBASE_BUTTONID_ONETIME_7MO =
88 COINBASE_BUTTONID_ONETIME_8MO =
89 COINBASE_BUTTONID_ONETIME_9MO =
90 COINBASE_BUTTONID_ONETIME_10MO =
91 COINBASE_BUTTONID_ONETIME_11MO =
92 COINBASE_BUTTONID_ONETIME_1YR =
93 COINBASE_BUTTONID_ONETIME_2YR =
94 COINBASE_BUTTONID_ONETIME_3YR =
95
d411cd5 Added support for disabling adds via config file
westmaas authored
96 # -- feature toggles --
97 disable_ads = false
92fdd42 Added option to disable captcha verification
gabe authored
98 disable_captcha = false
1ecb427 Andre d Add an option to disable rate limiting. For testing.
andre-d authored
99 disable_ratelimit = false
1db68ce Neil Williams Require two-factor authentication to enable admin mode.
spladug authored
100 disable_require_admin_otp = false
d411cd5 Added support for disabling adds via config file
westmaas authored
101
8e188e2 Andre d wiki: Rename wiki_disabled to disable_wiki.
andre-d authored
102 # Disable wiki editing and viewing for everyone except admins
103 disable_wiki = false
104
e683889 Jeremy Edberg New Features
jedberg authored
105 # -- important settings --
106 # the domain that this app serves itself up as
7fff900 david king February 2011 Merge
ketralnis authored
107 domain = reddit.local
68a06c5 Neil Williams April 2011 Merge
spladug authored
108 # the short domain (like redd.it)
109 shortdomain =
e683889 Jeremy Edberg New Features
jedberg authored
110 # if you use www for the old-timey feel, put it here
111 domain_prefix =
7118bde Neil Williams Turn CNAMEs into a simple redirect.
spladug authored
112 # subdomains that don't need special processing
113 reserved_subdomains = www, ssl
e683889 Jeremy Edberg New Features
jedberg authored
114 # the user used for "system" operations and messages
115 system_user = reddit
116 # list of admin accounts
117 admins = reddit
118 # the default subreddit for submissions
119 default_sr = reddit.com
e6178be Make default header image URL configurable.
westmaas authored
120 # default header image url
50a5daa Neil Williams Allow static files to be served from other domains.
spladug authored
121 default_header_url = reddit.com.header.png
e683889 Jeremy Edberg New Features
jedberg authored
122
123 # time for the page cache (for unlogged in users)
124 page_cache_time = 90
a8c6631 Neil Williams Comment Pane Cache: make cache lifetime configurable in INI.
spladug authored
125 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
126 commentpane_cache_time = 120
e683889 Jeremy Edberg New Features
jedberg authored
127
128 # default localization for strings (when using python's locale.format)
129 locale = C
130 # default site language (two letter character code)
01146c3 Keith Mitchell Remove unused r2.po and friends from repo
kemitche authored
131 site_lang = en
c280c6a Max Goodman Fix handling of an unset language override.
chromakode authored
132 lang_override =
e7b672d Neil Williams Replace proxy_addr with option to trust proxies in 10.0.0.0/8.
spladug authored
133 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
134 # set X-forwarded-for and set this to true
135 trust_local_proxies = false
e683889 Jeremy Edberg New Features
jedberg authored
136 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
137 ip_hash =
138 # timezone for storing
139 timezone = UTC
140 # timezone for the database
141 display_timezone = MST
b847757 Max Goodman Use cross domain https for slightly safer login.
chromakode authored
142 # https api endpoint (must be g.domain or a subdomain of g.domain)
143 https_endpoint =
e683889 Jeremy Edberg New Features
jedberg authored
144 # name of the cookie to drop with login information
145 login_cookie = reddit_session
33b15bc Neil Williams Split the admin cookie out from the session cookie.
spladug authored
146 # name of the admin cookie
147 admin_cookie = reddit_admin
8dfd73b Neil Williams Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
148 # name of the otp cookie
149 otp_cookie = reddit_otp
2a8cc84 Neil Williams Refactor user authentication to be more modular.
spladug authored
150 # how to authenticate users. see r2/lib/authentication.py for options
151 authentication_provider = cookie
a311805 Neil Williams Switch to bcrypt for password hashing.
spladug authored
152 # the work factor for bcrypt, increment this every time computers double in
153 # speed. don't worry, changing this won't break old passwords
154 bcrypt_work_factor = 12
e683889 Jeremy Edberg New Features
jedberg authored
155
987be0d Keith Mitchell Replace reference to #subreddit with /r/subreddit
kemitche authored
156 # account used for default feedback messaging (can be /r/subreddit)
e683889 Jeremy Edberg New Features
jedberg authored
157 admin_message_acct = reddit
158
159
160 # -- caching options --
161 # data cache (used for caching Thing objects)
162 num_mc_clients = 5
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
163 memcaches = 127.0.0.1:11211
ab039b4 Neil Williams Use a different set of memcaches for locking.
spladug authored
164 # caches to use for locking
165 lockcaches = 127.0.0.1:11211
7fff900 david king February 2011 Merge
ketralnis authored
166 stalecaches =
ae6ba7a added a separate set of memcaches for the render cache
spez authored
167 rendercaches = 127.0.0.1:11211
2d22cd2 Neil Williams Split the rendercache and pagecache.
spladug authored
168 pagecaches = 127.0.0.1:11211
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
169
67814d5 david king Features:
ketralnis authored
170 # -- permacache options --
171 # permacache is memcaches -> cassanda -> memcachedb
172 # memcaches that sit in front of cassandra
173 permacache_memcaches = 127.0.0.1:11211
174 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f Christopher Slowe Upgrade Instructions
KeyserSosa authored
175 cassandra_seeds = 127.0.0.1:9160
fcd3f3b Neil Williams Make cassandra connection pool size configurable.
spladug authored
176 # number of connections to keep open to the cassandra ring
177 cassandra_pool_size = 5
0ae8f2f david king 21 Jul 2010 merge
ketralnis authored
178 # read/write consistency levels for Cassandra
179 cassandra_rcl = ONE
7fff900 david king February 2011 Merge
ketralnis authored
180 cassandra_wcl = ONE
532be3f Neil Williams Allow Cassandra models to choose a connection pool.
spladug authored
181 # name of default connection pool to use when _connection_pool not specified
182 cassandra_default_pool = main
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
183
e683889 Jeremy Edberg New Features
jedberg authored
184 ## -- traffic tracking urls --
93a65a6 Neil Williams Move onload out of the app.
spladug authored
185 # domain to send tracking requests (see scripts/tracker.py)
0302293 Neil Williams fetch_trackers: Change tracking_domain config to be a full URL.
spladug authored
186 fetch_trackers_url = http://reddit.local/fetch-trackers
e683889 Jeremy Edberg New Features
jedberg authored
187 # image to render to track pageviews
188 tracker_url = /static/pixel.png
189 # images to render to track sponsored links
190 adtracker_url = /static/pixel.png
191 # image to render to track the ad frame
d433cb2 Max Goodman Remove production pixel URL from example.ini.
chromakode authored
192 adframetracker_url = /static/pixel.png
e683889 Jeremy Edberg New Features
jedberg authored
193 # open redirector to bounce clicks off of on sponsored links for tracking
194 clicktracker_url = /static/pixel.png
482e864 Max Goodman Fire a pixel for UI flow tracking of sub/unsubscribe.
chromakode authored
195 # url to request to track interaction statistics
196 uitracker_url = /static/pixel.png
e683889 Jeremy Edberg New Features
jedberg authored
197
198 # amqp
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
199 amqp_host = localhost:5672
e683889 Jeremy Edberg New Features
jedberg authored
200 amqp_user = reddit
201 amqp_pass = reddit
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
202 amqp_virtual_host = /
203
0b09f25 Neil Williams Add basic support for ZooKeeper via Kazoo.
spladug authored
204 ## -- zookeeper --
205 # optional at the moment
206 zookeeper_connection_string =
207 zookeeper_username =
208 zookeeper_password =
209
e683889 Jeremy Edberg New Features
jedberg authored
210 ## -- database setup --
211 # list of all databases named in the subsequent table
9cd5fed Neil Williams Add traffic to example.ini.
spladug authored
212 databases = main, comment, vote, email, authorize, award, hc, traffic
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
213
7fff900 david king February 2011 Merge
ketralnis authored
214 db_user = reddit
215 db_pass = password
216 db_port = 5432
217 db_pool_size = 3
218 db_pool_overflow_size = 3
219
220 #db name db host user, pass, port, conn, overflow_conn
221 main_db = reddit, 127.0.0.1, *, *, *, *, *
222 comment_db = reddit, 127.0.0.1, *, *, *, *, *
223 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
224 vote_db = reddit, 127.0.0.1, *, *, *, *, *
225 email_db = reddit, 127.0.0.1, *, *, *, *, *
226 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
227 award_db = reddit, 127.0.0.1, *, *, *, *, *
228 hc_db = reddit, 127.0.0.1, *, *, *, *, *
9cd5fed Neil Williams Add traffic to example.ini.
spladug authored
229 traffic_db = reddit, 127.0.0.1, *, *, *, *, *
e683889 Jeremy Edberg New Features
jedberg authored
230
7fff900 david king February 2011 Merge
ketralnis authored
231 hardcache_categories = *:hc:hc
37e2ba9 david king * Combine cassandra clusters into a single one
ketralnis authored
232
e683889 Jeremy Edberg New Features
jedberg authored
233 # this setting will prefix all of the table names
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
234 db_app_name = reddit
e683889 Jeremy Edberg New Features
jedberg authored
235 # are we allowed to create tables?
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
236 db_create_tables = True
9f0ec95 Neil Williams Split table definitions from db configuration.
spladug authored
237 # are we allowed to write at all?
238 disallow_db_writes = False
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
239
240 type_db = main
241 rel_type_db = main
5ef76b9 Christopher Slowe New features:
KeyserSosa authored
242 hardcache_db = main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
243
9f0ec95 Neil Williams Split table definitions from db configuration.
spladug authored
244 # definitions of what each table is (probably shouldn't change in .update files)
245 # things require no extra info. relation is followed by the names of the related tables
246 db_table_link = thing
247 db_table_account = thing
248 db_table_message = thing
249 db_table_savehide = relation, account, link
250 db_table_click = relation, account, link
251 db_table_comment = thing
252 db_table_subreddit = thing
253 db_table_srmember = relation, subreddit, account
254 db_table_friend = relation, account, account
255 db_table_vote_account_link = relation, account, link
256 db_table_vote_account_comment = relation, account, comment
257 db_table_inbox_account_comment = relation, account, comment
258 db_table_inbox_account_message = relation, account, message
259 db_table_moderatorinbox = relation, subreddit, message
260 db_table_report_account_link = relation, account, link
261 db_table_report_account_comment = relation, account, comment
262 db_table_report_account_message = relation, account, message
263 db_table_report_account_subreddit = relation, account, subreddit
264 db_table_award = thing
265 db_table_trophy = relation, account, award
266 db_table_jury_account_link = relation, account, link
267 db_table_ad = thing
268 db_table_adsr = relation, ad, subreddit
269 db_table_flair = relation, subreddit, account
09dbd49 shlurbee Update config with new promocampaign thing table
shlurbee authored
270 db_table_promocampaign = thing
9f0ec95 Neil Williams Split table definitions from db configuration.
spladug authored
271
272 # which servers to find each table on (likely to change in .update files)
273 # first server listed is assumed to be the master, all others are read-only slaves
274 # additionally, a "!avoid_master" flag may be added to specify that reads should use the slaves
275 db_servers_link = main, main
276 db_servers_account = main
277 db_servers_message = main
278 db_servers_savehide = main
279 db_servers_click = main
280 db_servers_comment = comment
281 db_servers_subreddit = comment
282 db_servers_srmember = comment
283 db_servers_friend = comment
284 db_servers_vote_account_link = vote
285 db_servers_vote_account_comment = vote
286 db_servers_inbox_account_comment = main
287 db_servers_inbox_account_message = main
288 db_servers_moderatorinbox = main
289 db_servers_report_account_link = main
290 db_servers_report_account_comment = comment
291 db_servers_report_account_message = main
292 db_servers_report_account_subreddit = main
293 db_servers_award = award
294 db_servers_trophy = award
295 db_servers_jury_account_link = main
296 db_servers_ad = main
297 db_servers_adsr = main
298 db_servers_flair = main
09dbd49 shlurbee Update config with new promocampaign thing table
shlurbee authored
299 db_servers_promocampaign = main
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
300
e683889 Jeremy Edberg New Features
jedberg authored
301
302 ## -- traffic analytics --
303 # google analytics token
304 googleanalytics =
305 # secret used for talking to the traffic machine
306 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
307
308
309 ## -- Self-service sponsored link stuff --
310 # (secure) payment domain
172f869 Max Goodman Add an example subdomain for payment_domain in example.ini.
chromakode authored
311 payment_domain = https://pay.reddit.local/
7fff900 david king February 2011 Merge
ketralnis authored
312 ad_domain = http://reddit.local
313 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
314 sponsors =
3fe8471 shlurbee Add email link to promo traffic help page
shlurbee authored
315 selfserve_support_email = selfservesupport@mydomain.com
37a4766 Keith Mitchell Limit the number of campaigns per promoted link
kemitche authored
316 MAX_CAMPAIGNS_PER_LINK = 100
7fff900 david king February 2011 Merge
ketralnis authored
317
318 # authorize.net credentials (blank authorizenetapi to disable)
319 authorizenetapi =
320 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 Jeremy Edberg New Features
jedberg authored
321 authorizenetname =
322 authorizenetkey =
7fff900 david king February 2011 Merge
ketralnis authored
323
e683889 Jeremy Edberg New Features
jedberg authored
324 min_promote_bid = 20
325 max_promote_bid = 9999
326 min_promote_future = 2
327
a70a6ea Brian Simpson Process traffic logs on Amazon EMR.
bsimpson63 authored
328 # traffic log processing
329 TRAFFIC_ACCESS_KEY =
330 TRAFFIC_SECRET_KEY =
331 RAW_LOG_DIR =
332 PROCESSED_DIR =
333 AGGREGATE_DIR =
334 AWS_LOG_DIR =
335 TRAFFIC_SRC_DIR =
336 TRAFFIC_LOG_HOSTS =
337
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
338 ###
339 # Other magic settings
340 ###
341
e412fdc Neil Williams Shard vote_link_qs by last digit of subreddit ID.
spladug authored
342 # should we split link votes into separate queues based on subreddit id?
343 # this helps with lock contention but isn't necessary on smaller sites
344 shard_link_vote_queues = false
345
e683889 Jeremy Edberg New Features
jedberg authored
346 # list of cnames allowed to render as reddit.com without a frame
347 authorized_cnames =
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
348
e683889 Jeremy Edberg New Features
jedberg authored
349 # -- query cache settings --
fbe867e Neil Williams Implement new lockless query cache.
spladug authored
350 querycache_prune_chance = 0.05
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
351
e683889 Jeremy Edberg New Features
jedberg authored
352 # -- stylesheet editor --
353 # disable custom stylesheets
354 css_killswitch = False
355 # list of "trusted" domains that can be referenced in url()
356 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
357 # max number of uploaded images per subreddit
358 max_sr_images = 50
359 # default stylesheet and it's rtl version
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
360 stylesheet = reddit.css
e683889 Jeremy Edberg New Features
jedberg authored
361 stylesheet_rtl = reddit-rtl.css
362 # location of the static directory
363 static_path = /static/
50a5daa Neil Williams Allow static files to be served from other domains.
spladug authored
364 # if set, these are the domains used for static files served over http and https
365 # if not set, no domain will be specified
366 static_domain =
367 static_secure_domain =
368 # if this is true, append .gz to CSS and JS files served from the static domain
369 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
370 static_pre_gzipped = false
371 static_secure_pre_gzipped = false
b2ad131 Neil Williams Subreddit CSS: Store subreddit CSS on S3 and minify it.
spladug authored
372 # which s3 bucket to place subreddit styles on (when empty, stylesheets will be served
373 # from the local database instead.
374 static_stylesheet_bucket =
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
375
e683889 Jeremy Edberg New Features
jedberg authored
376 # subreddit used for DMCA takedowns
5ef76b9 Christopher Slowe New features:
KeyserSosa authored
377 takedown_sr = _takedowns
e683889 Jeremy Edberg New Features
jedberg authored
378 # png compressor
379 png_optimizer = /usr/bin/env optipng
f5b6839 Neil Williams Losslessly optimize JPEGs.
spladug authored
380 # jpeg compressor
381 jpeg_optimizer =
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
382
e683889 Jeremy Edberg New Features
jedberg authored
383 # Just a list of words. Used by errlog.py to make up names for new errors.
384 words_file = /usr/dict/words
2869eaf david king New features:
ketralnis authored
385
e683889 Jeremy Edberg New Features
jedberg authored
386 # -- media stuff --
387 # user agent for the scraper
388 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
389
390 # The storage method to use for media
391 # Options:
392 # s3 - Uses Amazon S3 to upload media to buckets
393 media_store = s3
394
e683889 Jeremy Edberg New Features
jedberg authored
395 # your s3 credentials
396 S3KEY_ID =
397 S3SECRET_KEY =
4653c16 Andre d Split thumbnails and sr images across multiple buckets.
andre-d authored
398
399 # This bucket is used for old media, new installs may leave this blank
400 s3_old_thumb_bucket =
401
402 # May be one bucket, or many buckets seperated by commas
403 s3_media_buckets =
404
405 # Store direct urls for images, rather than buckets
406 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
407 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
408 # false: http://mybucket/helloworld.jpg
409 s3_media_direct = true
410
e683889 Jeremy Edberg New Features
jedberg authored
411 media_domain = localhost
4b9fee7 Sean Creeley Use an API key for the embed.ly API.
screeley authored
412 # Embedly API Key
413 embedly_api_key =
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
414
440cb66 Max Goodman Move gold prices to configuration parameters.
chromakode authored
415 # -- prices --
416 gold_month_price = 3.99
417 gold_year_price = 29.99
418
e683889 Jeremy Edberg New Features
jedberg authored
419 # -- limits --
420 # rate limiter duration (minutes)
421 RATELIMIT = 10
422 # minimum display karma
423 MIN_UP_KARMA = 1
424 MIN_RATE_LIMIT_KARMA = 10
425 MIN_RATE_LIMIT_COMMENT_KARMA = 1
426 QUOTA_THRESHOLD = 5
0ae8f2f david king 21 Jul 2010 merge
ketralnis authored
427 # Links and comments older than this many days qualify for historic preservation
428 REPLY_AGE_LIMIT = 180
68a06c5 Neil Williams April 2011 Merge
spladug authored
429 # Links and comments older than this many days can't be voted on
430 VOTE_AGE_LIMIT = 180
856a67e Jason Harvey Ignore reports older than the report age limit.
alienth authored
431 # Reports on links and comments older than this many days are ignored
432 REPORT_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored
433 # minimum age, in days, of an account to be eligible to create a community
434 min_membership_create_community = 30
a42505c Neil Williams Keep admin cookie around if actively used.
spladug authored
435 # the maximum life of an admin cookie (seconds)
436 ADMIN_COOKIE_TTL = 32400
437 # the maximum amount of idle time for an admin cookie (seconds)
438 ADMIN_COOKIE_MAX_IDLE = 900
8dfd73b Neil Williams Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
439 # the maximum life of an otp cookie
440 OTP_COOKIE_TTL = 604800
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
441
e683889 Jeremy Edberg New Features
jedberg authored
442 HOT_PAGE_AGE = 1000
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
443
e683889 Jeremy Edberg New Features
jedberg authored
444 # -- display options --
445 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored
446 rising_period = 12 hours
e683889 Jeremy Edberg New Features
jedberg authored
447 # max number of comments (default)
37e2ba9 david king * Combine cassandra clusters into a single one
ketralnis authored
448 num_comments = 100
449 # max number of comments (non-gold)
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
450 max_comments = 500
37e2ba9 david king * Combine cassandra clusters into a single one
ketralnis authored
451 # max number of comments (gold)
452 max_comments_gold = 2500
e683889 Jeremy Edberg New Features
jedberg authored
453 # list of reddits to auto-subscribe users to
454 automatic_reddits =
0ae8f2f david king 21 Jul 2010 merge
ketralnis authored
455 # special reddit that only reddit gold subscribers can use
456 lounge_reddit =
e683889 Jeremy Edberg New Features
jedberg authored
457 # 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
458 num_default_reddits = 10
e683889 Jeremy Edberg New Features
jedberg authored
459 # how deep do we go into the top listing when fetching /random
460 num_serendipity = 250
852b989 srbar updates
Mike authored
461 sr_dropdown_threshold = 15
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
462
37e2ba9 david king * Combine cassandra clusters into a single one
ketralnis authored
463 # Conflate visits to a comment page that happen within this many
464 # seconds of each other
465 comment_visits_period = 600
466
e683889 Jeremy Edberg New Features
jedberg authored
467 #user-agents to rate-limit
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
468 agents =
a8d55dd Keith Mitchell Set ratelimits on subreddits
kemitche authored
469 # subreddit ratelimits
470 sr_banned_quota = 10000
db7b531 Max Goodman Change moderator adding to an invite system.
chromakode authored
471 sr_moderator_invite_quota = 10000
a8d55dd Keith Mitchell Set ratelimits on subreddits
kemitche authored
472 sr_contributor_quota = 10000
5fe4e99 Andre d Wiki: Base wiki code
andre-d authored
473 sr_wikibanned_quota = 10000
474 sr_wikicontributor_quota = 10000
a8d55dd Keith Mitchell Set ratelimits on subreddits
kemitche authored
475 sr_quota_time = 7200
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
476
e683889 Jeremy Edberg New Features
jedberg authored
477 # -- email --
478 # smtp server
479 smtp_server = localhost
480 # delay before allowing a link to be shared
481 new_link_share_delay = 30 seconds
482 # alerter emails
483 nerds_email = nerds@reddit.com
484 # share reply email
485 share_reply = noreply@reddit.com
486 # feedback email
487 feedback_email = reddit@gmail.com
7ce107f Christopher Slowe sharing
KeyserSosa authored
488
51bcbfb Brian Simpson Method _key_from_url() now returns case sensitive results for special do...
bsimpson63 authored
489 # Special case sensitive domains
490 case_sensitive_domains = i.imgur.com, youtube.com
491
5fe4e99 Andre d Wiki: Base wiki code
andre-d authored
492 # Number of days to keep recent wiki revisions for
493 wiki_keep_recent_days = 7
494
495 # Max number of bytes for wiki pages
496 wiki_max_page_length_bytes = 262144
497
498 # Max wiki page name length
499 wiki_max_page_name_length = 128
500
501 # Max number of separators in a wiki page name
502 wiki_max_page_separators = 3
503
ebab524 Andre d Diff3: Added diff3 wrapper
andre-d authored
504 # Location (directory) for temp files for diff3 merging
505 # Empty will use python default for temp files
5fe4e99 Andre d Wiki: Base wiki code
andre-d authored
506 # Pro tip: Use /dev/shm for in-memory diff3
507 diff3_temp_location =
ebab524 Andre d Diff3: Added diff3 wrapper
andre-d authored
508
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
509 [server:main]
510 use = egg:Paste#http
511 host = 0.0.0.0
e683889 Jeremy Edberg New Features
jedberg authored
512 port = %(http_port)s
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
513
514 [app:main]
515 use = egg:r2
516 cache_dir = %(here)s/data
517 beaker.session_key = r2
518 beaker.session_secret = somesecret
519 #lang = en
520
521 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
522 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
523 # execute malicious code after an exception is raised.
0ae8f2f david king 21 Jul 2010 merge
ketralnis authored
524 #set debug = false
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
525
775c795 Neil Williams Use WebError Reporter objects for exception logging.
spladug authored
526 [loggers]
527 keys = root, pycountry
528
529 [logger_root]
530 level = WARNING
531 handlers = console
532
533 [logger_pycountry]
534 level = CRITICAL
535 qualname = pycountry.db
536 handlers =
537
538 [handlers]
539 keys = console
540
541 [handler_console]
542 class = StreamHandler
543 args = (sys.stdout,)
544
545 [formatters]
546 keys = reddit
547
548 [formatter_reddit]
549 format = %(message)s
550
f495dad Neil Williams Add ZooKeeper-based dynamic configuration system.
spladug authored
551 # the following configuration section makes up the "live" config. if zookeeper
552 # is enabled, then this configuration will be found by the app in zookeeper. to
553 # write it to zookeeper, use the writer script: scripts/write_live_config.
554 [live_config]
4a4543b Neil Williams Move frontpage_dart option into new live config.
spladug authored
555 # make frontpage 100% dart
556 frontpage_dart = false
c337280 Neil Williams fastlane: Separate votes on some links and their comments.
spladug authored
557 # links that get their own infrastructure (comma-delimited list of id36s)
558 fastlane_links =
98d0ca5 Max Goodman Move announcement_message to ZooKeeper.
chromakode authored
559 # a message placed in the infobar
560 announcement_message =
b1ed5e0 shlurbee Move sr discovery links to zookeeper
shlurbee authored
561 # spotlight links for subreddit discovery
562 sr_discovery_links =
1b6423a Neil Williams example.ini: Document subreddit suggester live config options.
spladug authored
563 # probability of the subreddit suggester showing up in the spotlight box
564 # for users that have at some point edited their subscriptions:
613b27d Max Goodman Add subreddit interest discovery bar.
chromakode authored
565 spotlight_interest_sub_p = .05
1b6423a Neil Williams example.ini: Document subreddit suggester live config options.
spladug authored
566 # and for users that have not ever subscribed:
613b27d Max Goodman Add subreddit interest discovery bar.
chromakode authored
567 spotlight_interest_nosub_p = .1
2868e65 Randomly assign comment tree implementation to new links.
Logan Hanks authored
568 # map of comment tree version to how frequently it should be chosen relative to
569 # the others
43e2900 Update example.ini to enable only comment tree v1.
Logan Hanks authored
570 comment_tree_version_weights = 1:1, 2:0
4024dd5 Max Goodman Markdownify goldvertisements.
chromakode authored
571 # markdown message blurbs for the front page sidebar gold ad.
572 # use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
4d86ad0 Max Goodman Add small front page gold advertisement.
chromakode authored
573 goldvertisement_blurbs = "Make reddit better. Try %(reddit_gold)." "This year, give the gift of %(reddit_gold)s.|(and you should probably also give some other, better gifts)"
099b6af Max Goodman Whisper sweet nothings to the goldmembers.
chromakode authored
574 goldvertisement_has_gold_blurbs = "**&ldquo;Exquisite!&rdquo;** \nGrab a drink and join us in [the lounge](/r/lounge)."
Something went wrong with that request. Please try again.