Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 619 lines (536 sloc) 19.969 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 @chromakode 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 @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 installat...
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 installat...
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 @chromakode Fix handling of an unset language override.
chromakode 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 @chromakode Use cross domain https for slightly safer login.
chromakode 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 @chromakode Remove production pixel URL from example.ini.
chromakode 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 @chromakode Fire a pixel for UI flow tracking of sub/unsubscribe.
chromakode 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. added...
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 @chromakode Add an example subdomain for payment_domain in example.ini.
chromakode authored
312 payment_domain = https://pay.reddit.local/
7fff900 @ketralnis February 2011 Merge
ketralnis authored
313 ad_domain = http://reddit.local
314 allowed_pay_countries = United States, United Kingdom, Canada
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
315 sponsors =
3fe8471 @shlurbee Add email link to promo traffic help page
shlurbee authored
316 selfserve_support_email = selfservesupport@mydomain.com
37a4766 @kemitche Limit the number of campaigns per promoted link
kemitche authored
317 MAX_CAMPAIGNS_PER_LINK = 100
7fff900 @ketralnis February 2011 Merge
ketralnis authored
318
319 # authorize.net credentials (blank authorizenetapi to disable)
320 authorizenetapi =
321 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 @jedberg New Features
jedberg authored
322 authorizenetname =
323 authorizenetkey =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
324
e683889 @jedberg New Features
jedberg authored
325 min_promote_bid = 20
326 max_promote_bid = 9999
327 min_promote_future = 2
328
a70a6ea @bsimpson63 Process traffic logs on Amazon EMR.
bsimpson63 authored
329 # traffic log processing
330 TRAFFIC_ACCESS_KEY =
331 TRAFFIC_SECRET_KEY =
332 RAW_LOG_DIR =
333 PROCESSED_DIR =
334 AGGREGATE_DIR =
335 AWS_LOG_DIR =
336 TRAFFIC_SRC_DIR =
337 TRAFFIC_LOG_HOSTS =
338
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
339 ###
340 # Other magic settings
341 ###
342
e412fdc @spladug Shard vote_link_qs by last digit of subreddit ID.
spladug authored
343 # should we split link votes into separate queues based on subreddit id?
344 # this helps with lock contention but isn't necessary on smaller sites
345 shard_link_vote_queues = false
346
713a8ee @spladug Shard commentstree_q processing by Link ID.
spladug authored
347 # should we split comment tree processing into shards based on the link id?
348 # this helps with lock contention but isn't necessary on smaller sites
349 shard_commentstree_queues = false
350
e683889 @jedberg New Features
jedberg authored
351 # list of cnames allowed to render as reddit.com without a frame
352 authorized_cnames =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
353
e683889 @jedberg New Features
jedberg authored
354 # -- query cache settings --
fbe867e @spladug Implement new lockless query cache.
spladug authored
355 querycache_prune_chance = 0.05
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
356
e683889 @jedberg New Features
jedberg authored
357 # -- stylesheet editor --
358 # disable custom stylesheets
359 css_killswitch = False
360 # list of "trusted" domains that can be referenced in url()
361 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
362 # max number of uploaded images per subreddit
363 max_sr_images = 50
364 # default stylesheet and it's rtl version
b770a4b @chromakode reddit.css -> reddit.less
chromakode authored
365 stylesheet = reddit.less
e683889 @jedberg New Features
jedberg authored
366 stylesheet_rtl = reddit-rtl.css
367 # location of the static directory
368 static_path = /static/
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
369 # if set, these are the domains used for static files served over http and https
370 # if not set, no domain will be specified
371 static_domain =
372 static_secure_domain =
490d981 @chromakode Allow a static domain to be specified for subreddit stylesheets.
chromakode authored
373 # if set, stylesheets will be sourced from these domains
374 # if not set, stylesheets will use the default static_domain
375 static_sr_stylesheet_domain =
376 static_secure_sr_stylesheet_domain =
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
377 # if this is true, append .gz to CSS and JS files served from the static domain
378 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
379 static_pre_gzipped = false
380 static_secure_pre_gzipped = false
b2ad131 @spladug Subreddit CSS: Store subreddit CSS on S3 and minify it.
spladug authored
381 # which s3 bucket to place subreddit styles on (when empty, stylesheets will be served
382 # from the local database instead.
383 static_stylesheet_bucket =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
384
e683889 @jedberg New Features
jedberg authored
385 # subreddit used for DMCA takedowns
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
386 takedown_sr = _takedowns
e683889 @jedberg New Features
jedberg authored
387 # png compressor
388 png_optimizer = /usr/bin/env optipng
f5b6839 @spladug Losslessly optimize JPEGs.
spladug authored
389 # jpeg compressor
390 jpeg_optimizer =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
391
e683889 @jedberg New Features
jedberg authored
392 # Just a list of words. Used by errlog.py to make up names for new errors.
393 words_file = /usr/dict/words
2869eaf @ketralnis New features:
ketralnis authored
394
e683889 @jedberg New Features
jedberg authored
395 # -- media stuff --
396 # user agent for the scraper
397 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
398
399 # The storage method to use for media
400 # Options:
401 # s3 - Uses Amazon S3 to upload media to buckets
402 media_store = s3
403
58a6496 @spladug Allow boto to gather AWS credentials from alternate sources.
spladug authored
404 # your s3 credentials -- if these are left blank, we'll pass None to
405 # boto which will trigger it to look in various places, including instance
406 # metadata if on ec2, for credentials.
e683889 @jedberg New Features
jedberg authored
407 S3KEY_ID =
408 S3SECRET_KEY =
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored
409
410 # This bucket is used for old media, new installs may leave this blank
411 s3_old_thumb_bucket =
412
413 # May be one bucket, or many buckets seperated by commas
414 s3_media_buckets =
415
416 # Store direct urls for images, rather than buckets
417 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
418 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
419 # false: http://mybucket/helloworld.jpg
420 s3_media_direct = true
421
e683889 @jedberg New Features
jedberg authored
422 media_domain = localhost
4b9fee7 @screeley Use an API key for the embed.ly API.
screeley authored
423 # Embedly API Key
424 embedly_api_key =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
425
440cb66 @chromakode Move gold prices to configuration parameters.
chromakode authored
426 # -- prices --
427 gold_month_price = 3.99
428 gold_year_price = 29.99
429
e683889 @jedberg New Features
jedberg authored
430 # -- limits --
431 # rate limiter duration (minutes)
432 RATELIMIT = 10
433 # minimum display karma
434 MIN_UP_KARMA = 1
435 MIN_RATE_LIMIT_KARMA = 10
436 MIN_RATE_LIMIT_COMMENT_KARMA = 1
437 QUOTA_THRESHOLD = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
438 # Links and comments older than this many days qualify for historic preservation
439 REPLY_AGE_LIMIT = 180
68a06c5 @spladug April 2011 Merge
spladug authored
440 # Links and comments older than this many days can't be voted on
441 VOTE_AGE_LIMIT = 180
856a67e @alienth Ignore reports older than the report age limit.
alienth authored
442 # Reports on links and comments older than this many days are ignored
443 REPORT_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored
444 # minimum age, in days, of an account to be eligible to create a community
445 min_membership_create_community = 30
a42505c @spladug Keep admin cookie around if actively used.
spladug authored
446 # the maximum life of an admin cookie (seconds)
447 ADMIN_COOKIE_TTL = 32400
448 # the maximum amount of idle time for an admin cookie (seconds)
449 ADMIN_COOKIE_MAX_IDLE = 900
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
450 # the maximum life of an otp cookie
451 OTP_COOKIE_TTL = 604800
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
452
e683889 @jedberg New Features
jedberg authored
453 HOT_PAGE_AGE = 1000
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
454
e683889 @jedberg New Features
jedberg authored
455 # -- display options --
456 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored
457 rising_period = 12 hours
e683889 @jedberg New Features
jedberg authored
458 # max number of comments (default)
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
459 num_comments = 100
460 # max number of comments (non-gold)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
461 max_comments = 500
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
462 # max number of comments (gold)
463 max_comments_gold = 2500
e683889 @jedberg New Features
jedberg authored
464 # list of reddits to auto-subscribe users to
465 automatic_reddits =
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
466 # special reddit that only reddit gold subscribers can use
467 lounge_reddit =
e683889 @jedberg New Features
jedberg authored
468 # cutoff number of reddits to show unsubscribed users
0745f5b @KeyserSosa make 1/2 of the default reddits English reddits if the user hasn't set t...
KeyserSosa authored
469 num_default_reddits = 10
e683889 @jedberg New Features
jedberg authored
470 # how deep do we go into the top listing when fetching /random
471 num_serendipity = 250
852b989 srbar updates
Mike authored
472 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
473
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
474 # Conflate visits to a comment page that happen within this many
475 # seconds of each other
476 comment_visits_period = 600
477
3735a63 @rram Allow ratelimited user agents to have individual limits.
rram authored
478 # user-agents to rate-limit with number of requests every ten seconds
479 # To limit GoogleBot to 10 requests and AppEngine to 2 requests and AppEngine to 2 requests every 10 seconds
480 # agents = googlebot:10, appengine:2
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
481 agents =
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
482 # subreddit ratelimits
483 sr_banned_quota = 10000
db7b531 @chromakode Change moderator adding to an invite system.
chromakode authored
484 sr_moderator_invite_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
485 sr_contributor_quota = 10000
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
486 sr_wikibanned_quota = 10000
487 sr_wikicontributor_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
488 sr_quota_time = 7200
1114597 @alienth Allow a maximum of 50 pending mod invites.
alienth authored
489 sr_invite_limit = 25
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
490
e683889 @jedberg New Features
jedberg authored
491 # -- email --
492 # smtp server
493 smtp_server = localhost
494 # delay before allowing a link to be shared
495 new_link_share_delay = 30 seconds
496 # alerter emails
497 nerds_email = nerds@reddit.com
498 # share reply email
499 share_reply = noreply@reddit.com
500 # feedback email
501 feedback_email = reddit@gmail.com
7ce107f @KeyserSosa sharing
KeyserSosa authored
502
51bcbfb @bsimpson63 Method _key_from_url() now returns case sensitive results for special do...
bsimpson63 authored
503 # Special case sensitive domains
504 case_sensitive_domains = i.imgur.com, youtube.com
505
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
506 # Number of days to keep recent wiki revisions for
507 wiki_keep_recent_days = 7
508
509 # Max number of bytes for wiki pages
510 wiki_max_page_length_bytes = 262144
511
512 # Max wiki page name length
513 wiki_max_page_name_length = 128
514
515 # Max number of separators in a wiki page name
516 wiki_max_page_separators = 3
517
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
518 # Location (directory) for temp files for diff3 merging
519 # Empty will use python default for temp files
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
520 # Pro tip: Use /dev/shm for in-memory diff3
521 diff3_temp_location =
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
522
4b53396 @chromakode Privacy policy and user agreement viewer.
chromakode authored
523 # -- policy wiki pages --
524 wiki_page_privacy_policy = privacypolicy
525 wiki_page_user_agreement = useragreement
a6c252e @chromakode Display privacy philosophy on registration form.
chromakode authored
526 wiki_page_registration_info = registration_info
4b53396 @chromakode Privacy policy and user agreement viewer.
chromakode authored
527
6101c1a @chromakode stats: Only track timings for interesting templates.
chromakode authored
528 # Template names to record render timings for
529 timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
530
052c661 @rram Add employees to example.ini
rram authored
531 # employees that aren't admins or sponsors (Free gilding, admin distinguish, traffic viewing, etc.)
532 employees =
533
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
534 [server:main]
535 use = egg:Paste#http
536 host = 0.0.0.0
e683889 @jedberg New Features
jedberg authored
537 port = %(http_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
538
539 [app:main]
540 use = egg:r2
541 cache_dir = %(here)s/data
542 beaker.session_key = r2
543 beaker.session_secret = somesecret
544 #lang = en
545
546 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
547 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
548 # execute malicious code after an exception is raised.
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
549 #set debug = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
550
3574a64 @spladug Add an optional paste-filter compatible Gzipping middleware.
spladug authored
551 filter-with = gzip
552
553 [filter:gzip]
554 use = egg:r2#gzip
555 compress_level = 6
556 min_size = 800
557
775c795 @spladug Use WebError Reporter objects for exception logging.
spladug authored
558 [loggers]
559 keys = root, pycountry
560
561 [logger_root]
562 level = WARNING
563 handlers = console
564
565 [logger_pycountry]
566 level = CRITICAL
567 qualname = pycountry.db
568 handlers =
569
570 [handlers]
571 keys = console
572
573 [handler_console]
574 class = StreamHandler
575 args = (sys.stdout,)
576
577 [formatters]
578 keys = reddit
579
580 [formatter_reddit]
581 format = %(message)s
582
f495dad @spladug Add ZooKeeper-based dynamic configuration system.
spladug authored
583 # the following configuration section makes up the "live" config. if zookeeper
584 # is enabled, then this configuration will be found by the app in zookeeper. to
585 # write it to zookeeper, use the writer script: scripts/write_live_config.
586 [live_config]
4a4543b @spladug Move frontpage_dart option into new live config.
spladug authored
587 # make frontpage 100% dart
588 frontpage_dart = false
c337280 @spladug fastlane: Separate votes on some links and their comments.
spladug authored
589 # links that get their own infrastructure (comma-delimited list of id36s)
590 fastlane_links =
98d0ca5 @chromakode Move announcement_message to ZooKeeper.
chromakode authored
591 # a message placed in the infobar
592 announcement_message =
79ccaca @chromakode Add support for a live-config sidebar info message.
chromakode authored
593 # an info message placed in the sidebar
594 sidebar_message =
ae2b646 @chromakode Add gold-specific sidebar message.
chromakode authored
595 # an info message placed in the sidebar for gold users
596 gold_sidebar_message =
b1ed5e0 @shlurbee Move sr discovery links to zookeeper
shlurbee authored
597 # spotlight links for subreddit discovery
598 sr_discovery_links =
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
599 # probability of the subreddit suggester showing up in the spotlight box
600 # for users that have at some point edited their subscriptions:
613b27d @chromakode Add subreddit interest discovery bar.
chromakode authored
601 spotlight_interest_sub_p = .05
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
602 # and for users that have not ever subscribed:
613b27d @chromakode Add subreddit interest discovery bar.
chromakode authored
603 spotlight_interest_nosub_p = .1
2868e65 Randomly assign comment tree implementation to new links.
Logan Hanks authored
604 # map of comment tree version to how frequently it should be chosen relative to
605 # the others
43e2900 Update example.ini to enable only comment tree v1.
Logan Hanks authored
606 comment_tree_version_weights = 1:1, 2:0
22a5328 @chromakode Web frontend logging.
chromakode authored
607 # enables/disables client side logging POSTs to /web/log/...
608 frontend_logging = true
4024dd5 @chromakode Markdownify goldvertisements.
chromakode authored
609 # markdown message blurbs for the front page sidebar gold ad.
610 # use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
4d86ad0 @chromakode Add small front page gold advertisement.
chromakode authored
611 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 @chromakode Whisper sweet nothings to the goldmembers.
chromakode authored
612 goldvertisement_has_gold_blurbs = "**&ldquo;Exquisite!&rdquo;** \nGrab a drink and join us in [the lounge](/r/lounge)."
3d0e197 @chromakode Move sample multis list to live config.
chromakode authored
613 # sample multireddits (displayed when a user has no multis)
614 listing_chooser_sample_multis = /user/reddit/m/hello, /user/reddit/m/world
a71bc66 @chromakode Add gold perks listing chooser tab.
chromakode authored
615 # multi of subreddits to share with gold users
616 listing_chooser_gold_multi = /user/reddit/m/gold
2566f25 @chromakode Add tab to listing chooser for multi explore subreddit.
chromakode authored
617 # subreddit showcasing new multireddits
618 listing_chooser_explore_sr = multis
Something went wrong with that request. Please try again.