Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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