Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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