Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 575 lines (501 sloc) 18.618 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 # enable/disable writing errors as they occur to a rabbit-mq queue
a402d48 New features:
Mike authored
31 exception_logging = false
e683889 @jedberg New Features
jedberg authored
32 # whether to print a "reddit app started" message at start"
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
33 log_start = true
e683889 @jedberg New Features
jedberg authored
34 # enable/disable logging for amqp/rabbitmq
35 amqp_logging = false
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
36 # emergency measures: makes the site read only
37 read_only_mode = false
4758ac8 @spladug Make read-only mode slightly less frustrating.
spladug authored
38 # a modified read only mode used for cache shown during heavy load 503s
39 heavy_load_mode = false
4169226 @spladug Make profiling transparent and aggregatable.
spladug authored
40 # directory to write cProfile stats dumps to (disabled if not set)
41 profile_directory =
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
42
0cf053f Add blank announcement_message to example.ini.
Max Goodman authored
43 # a message placed in the infobar
44 announcement_message =
a86261f @andre-d Add a contextual description metatag for scrapers.
andre-d authored
45 # the site's tagline, used in the title and description
46 short_description = open source is awesome
47
e683889 @jedberg New Features
jedberg authored
48 # -- SECRETS! <-- update these first! --
49 # global secret
50 SECRET = abcdefghijklmnopqrstuvwxyz0123456789
51 # secret for making the modhash
52 MODSECRET = abcdefghijklmnopqrstuvwxyz0123456789
53 # secret for /prefs/feeds
54 FEEDSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5721e46 @spladug Add validator that checks a secret key or admin cookie.
spladug authored
55 # used for authenticating admin API calls w/o cookie
56 ADMINSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
57
c209cc2 @kemitche Switch to cloudsearch as primary search provider
kemitche authored
58 CLOUDSEARCH_SEARCH_API =
59 CLOUDSEARCH_DOC_API =
213dd1e @kemitche Add CLOUDSEARCH_SUBREDDIT endpoints to example.ini
kemitche authored
60 CLOUDSEARCH_SUBREDDIT_SEARCH_API =
61 CLOUDSEARCH_SUBREDDIT_DOC_API =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
62
a6da54d @spladug Add missing gold checkout stuff to example.ini.
spladug authored
63 # for gold purchases.
64 PAYPAL_URL = https://www.paypal.com/cgi-bin/webscr
65 PAYPAL_SECRET =
66 PAYPAL_BUTTONID_ONETIME_BYMONTH =
67 PAYPAL_BUTTONID_ONETIME_BYYEAR =
68 PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
69 PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
70 PAYPAL_BUTTONID_CREDDITS_BYMONTH =
71 PAYPAL_BUTTONID_CREDDITS_BYYEAR =
72
73 GOOGLE_ID =
74 GOOGLE_KEY =
75 GOOGLE_REQUEST_URL = https://checkout.google.com/api/checkout/v2/request/Merchant/
76 GOOGLE_REPORT_URL = https://checkout.google.com/api/checkout/v2/reports/Merchant/
77
d411cd5 Added support for disabling adds via config file
westmaas authored
78 # -- feature toggles --
79 disable_ads = false
92fdd42 Added option to disable captcha verification
gabe authored
80 disable_captcha = false
1ecb427 @andre-d Add an option to disable rate limiting. For testing.
andre-d authored
81 disable_ratelimit = false
1db68ce @spladug Require two-factor authentication to enable admin mode.
spladug authored
82 disable_require_admin_otp = false
d411cd5 Added support for disabling adds via config file
westmaas authored
83
8e188e2 @andre-d wiki: Rename wiki_disabled to disable_wiki.
andre-d authored
84 # Disable wiki editing and viewing for everyone except admins
85 disable_wiki = false
86
e683889 @jedberg New Features
jedberg authored
87 # -- important settings --
88 # the domain that this app serves itself up as
7fff900 @ketralnis February 2011 Merge
ketralnis authored
89 domain = reddit.local
68a06c5 @spladug April 2011 Merge
spladug authored
90 # the short domain (like redd.it)
91 shortdomain =
e683889 @jedberg New Features
jedberg authored
92 # if you use www for the old-timey feel, put it here
93 domain_prefix =
7118bde @spladug Turn CNAMEs into a simple redirect.
spladug authored
94 # subdomains that don't need special processing
95 reserved_subdomains = www, ssl
e683889 @jedberg New Features
jedberg authored
96 # the user used for "system" operations and messages
97 system_user = reddit
98 # list of admin accounts
99 admins = reddit
100 # the default subreddit for submissions
101 default_sr = reddit.com
e6178be Make default header image URL configurable.
westmaas authored
102 # default header image url
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
103 default_header_url = reddit.com.header.png
e683889 @jedberg New Features
jedberg authored
104
105 # time for the page cache (for unlogged in users)
106 page_cache_time = 90
a8c6631 @spladug Comment Pane Cache: make cache lifetime configurable in INI.
spladug authored
107 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
108 commentpane_cache_time = 120
e683889 @jedberg New Features
jedberg authored
109
110 # default localization for strings (when using python's locale.format)
111 locale = C
112 # default site language (two letter character code)
01146c3 @kemitche Remove unused r2.po and friends from repo
kemitche authored
113 site_lang = en
c280c6a Fix handling of an unset language override.
Max Goodman authored
114 lang_override =
e7b672d @spladug Replace proxy_addr with option to trust proxies in 10.0.0.0/8.
spladug authored
115 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
116 # set X-forwarded-for and set this to true
117 trust_local_proxies = false
e683889 @jedberg New Features
jedberg authored
118 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
119 ip_hash =
120 # timezone for storing
121 timezone = UTC
122 # timezone for the database
123 display_timezone = MST
124 # secret key for accessing /shutdown
125 shutdown_secret = 12345
b847757 Use cross domain https for slightly safer login.
Max Goodman authored
126 # https api endpoint (must be g.domain or a subdomain of g.domain)
127 https_endpoint =
e683889 @jedberg New Features
jedberg authored
128 # name of the cookie to drop with login information
129 login_cookie = reddit_session
33b15bc @spladug Split the admin cookie out from the session cookie.
spladug authored
130 # name of the admin cookie
131 admin_cookie = reddit_admin
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
132 # name of the otp cookie
133 otp_cookie = reddit_otp
2a8cc84 @spladug Refactor user authentication to be more modular.
spladug authored
134 # how to authenticate users. see r2/lib/authentication.py for options
135 authentication_provider = cookie
a311805 @spladug Switch to bcrypt for password hashing.
spladug authored
136 # the work factor for bcrypt, increment this every time computers double in
137 # speed. don't worry, changing this won't break old passwords
138 bcrypt_work_factor = 12
e683889 @jedberg New Features
jedberg authored
139
140 # fraction of requests to pass into the queue-based usage sampler
141 usage_sampling = 0.
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
142
987be0d @kemitche Replace reference to #subreddit with /r/subreddit
kemitche authored
143 # account used for default feedback messaging (can be /r/subreddit)
e683889 @jedberg New Features
jedberg authored
144 admin_message_acct = reddit
145
146
147 # -- caching options --
148 # data cache (used for caching Thing objects)
149 num_mc_clients = 5
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
150 memcaches = 127.0.0.1:11211
ab039b4 @spladug Use a different set of memcaches for locking.
spladug authored
151 # caches to use for locking
152 lockcaches = 127.0.0.1:11211
7fff900 @ketralnis February 2011 Merge
ketralnis authored
153 stalecaches =
ae6ba7a added a separate set of memcaches for the render cache
spez authored
154 rendercaches = 127.0.0.1:11211
2d22cd2 @spladug Split the rendercache and pagecache.
spladug authored
155 pagecaches = 127.0.0.1:11211
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
156
67814d5 @ketralnis Features:
ketralnis authored
157 # -- permacache options --
158 # permacache is memcaches -> cassanda -> memcachedb
159 # memcaches that sit in front of cassandra
160 permacache_memcaches = 127.0.0.1:11211
161 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f @KeyserSosa Upgrade Instructions
KeyserSosa authored
162 cassandra_seeds = 127.0.0.1:9160
fcd3f3b @spladug Make cassandra connection pool size configurable.
spladug authored
163 # number of connections to keep open to the cassandra ring
164 cassandra_pool_size = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
165 # read/write consistency levels for Cassandra
166 cassandra_rcl = ONE
7fff900 @ketralnis February 2011 Merge
ketralnis authored
167 cassandra_wcl = ONE
532be3f @spladug Allow Cassandra models to choose a connection pool.
spladug authored
168 # name of default connection pool to use when _connection_pool not specified
169 cassandra_default_pool = main
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
170
e683889 @jedberg New Features
jedberg authored
171 # -- url cache options --
172 url_caches = 127.0.0.1:11211
173 # cassandra hosts. one of these will be chosen at random by pycassa
174 url_seeds =
175
176
177 # caches for storing number of times a link is rendered
178 incr_cache = udp:localhost:11211
179 incr_caches = localhost:11211
180 # recommender cache (depricated)
181 rec_cache = 127.0.0.1:11211
182
183 ## -- traffic tracking urls --
93a65a6 @spladug Move onload out of the app.
spladug authored
184 # domain to send tracking requests (see scripts/tracker.py)
185 tracking_domain = reddit.local
e683889 @jedberg New Features
jedberg authored
186 # image to render to track pageviews
187 tracker_url = /static/pixel.png
188 # images to render to track sponsored links
189 adtracker_url = /static/pixel.png
190 # image to render to track the ad frame
d433cb2 Remove production pixel URL from example.ini.
Max Goodman authored
191 adframetracker_url = /static/pixel.png
e683889 @jedberg New Features
jedberg authored
192 # open redirector to bounce clicks off of on sponsored links for tracking
193 clicktracker_url = /static/pixel.png
482e864 Fire a pixel for UI flow tracking of sub/unsubscribe.
Max Goodman authored
194 # url to request to track interaction statistics
195 uitracker_url = /static/pixel.png
7fff900 @ketralnis February 2011 Merge
ketralnis authored
196 # new pixel
197 newtracker_url =
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 # machine to get traffic metrics from
307 traffic_url = http://localhost:8010/tracker/pickle/
308 # secret used for talking to the traffic machine
309 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
310
311
312 ## -- Self-service sponsored link stuff --
313 # (secure) payment domain
172f869 Add an example subdomain for payment_domain in example.ini.
Max Goodman authored
314 payment_domain = https://pay.reddit.local/
7fff900 @ketralnis February 2011 Merge
ketralnis authored
315 ad_domain = http://reddit.local
316 allowed_pay_countries = United States, United Kingdom, Canada
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
317 sponsors =
3fe8471 @shlurbee Add email link to promo traffic help page
shlurbee authored
318 selfserve_support_email = selfservesupport@mydomain.com
37a4766 @kemitche Limit the number of campaigns per promoted link
kemitche authored
319 MAX_CAMPAIGNS_PER_LINK = 100
7fff900 @ketralnis February 2011 Merge
ketralnis authored
320
321 # authorize.net credentials (blank authorizenetapi to disable)
322 authorizenetapi =
323 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 @jedberg New Features
jedberg authored
324 authorizenetname =
325 authorizenetkey =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
326
e683889 @jedberg New Features
jedberg authored
327 min_promote_bid = 20
328 max_promote_bid = 9999
329 min_promote_future = 2
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
e683889 @jedberg New Features
jedberg authored
341 # -- spreadshirt --
342 spreadshirt_url =
343 spreadshirt_vendor_id =
344 spreadshirt_min_font = 42
345 spreadshirt_max_width = 620
346 spreadshirt_test_font =
347
348
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
349 ###
350 # Other magic settings
351 ###
352
e412fdc @spladug Shard vote_link_qs by last digit of subreddit ID.
spladug authored
353 # should we split link votes into separate queues based on subreddit id?
354 # this helps with lock contention but isn't necessary on smaller sites
355 shard_link_vote_queues = false
356
e683889 @jedberg New Features
jedberg authored
357 # list of cnames allowed to render as reddit.com without a frame
358 authorized_cnames =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
359
e683889 @jedberg New Features
jedberg authored
360 # -- query cache settings --
361 num_query_queue_workers = 5
362 query_queue_worker = http://cslowe.local:8000
363 enable_doquery = True
7fff900 @ketralnis February 2011 Merge
ketralnis authored
364 use_query_cache = True
e683889 @jedberg New Features
jedberg authored
365 write_query_queue = True
fbe867e @spladug Implement new lockless query cache.
spladug authored
366 querycache_prune_chance = 0.05
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
367
e683889 @jedberg New Features
jedberg authored
368 # -- stylesheet editor --
369 # disable custom stylesheets
370 css_killswitch = False
371 # list of "trusted" domains that can be referenced in url()
372 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
373 # max number of uploaded images per subreddit
374 max_sr_images = 50
375 # default stylesheet and it's rtl version
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
376 stylesheet = reddit.css
e683889 @jedberg New Features
jedberg authored
377 stylesheet_rtl = reddit-rtl.css
378 # location of the static directory
379 static_path = /static/
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
380 # if set, these are the domains used for static files served over http and https
381 # if not set, no domain will be specified
382 static_domain =
383 static_secure_domain =
384 # if this is true, append .gz to CSS and JS files served from the static domain
385 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
386 static_pre_gzipped = false
387 static_secure_pre_gzipped = false
b2ad131 @spladug Subreddit CSS: Store subreddit CSS on S3 and minify it.
spladug authored
388 # which s3 bucket to place subreddit styles on (when empty, stylesheets will be served
389 # from the local database instead.
390 static_stylesheet_bucket =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
391
e683889 @jedberg New Features
jedberg authored
392 # -- translator UI --
393 # enable/disable access to the translation UI in /admin/i18n
394 translator = true
395 # reddit runs the translator UI on a different instance with a
396 # password to login. These settings are used when generating messages
397 # to translators to tell them their credentials
398 translator_username =
399 translator_password =
6bcef00 @ketralnis 1. Allow a reddit to have a cname, like www.proggit.com, that renders
ketralnis authored
400
e683889 @jedberg New Features
jedberg authored
401 # subreddit used for DMCA takedowns
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
402 takedown_sr = _takedowns
e683889 @jedberg New Features
jedberg authored
403 # png compressor
404 png_optimizer = /usr/bin/env optipng
f5b6839 @spladug Losslessly optimize JPEGs.
spladug authored
405 # jpeg compressor
406 jpeg_optimizer =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
407
e683889 @jedberg New Features
jedberg authored
408 # Just a list of words. Used by errlog.py to make up names for new errors.
409 words_file = /usr/dict/words
2869eaf @ketralnis New features:
ketralnis authored
410
e683889 @jedberg New Features
jedberg authored
411 # -- media stuff --
412 # user agent for the scraper
413 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
414
415 # The storage method to use for media
416 # Options:
417 # s3 - Uses Amazon S3 to upload media to buckets
418 media_store = s3
419
e683889 @jedberg New Features
jedberg authored
420 # your s3 credentials
421 S3KEY_ID =
422 S3SECRET_KEY =
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored
423
424 # This bucket is used for old media, new installs may leave this blank
425 s3_old_thumb_bucket =
426
427 # May be one bucket, or many buckets seperated by commas
428 s3_media_buckets =
429
430 # Store direct urls for images, rather than buckets
431 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
432 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
433 # false: http://mybucket/helloworld.jpg
434 s3_media_direct = true
435
e683889 @jedberg New Features
jedberg authored
436 media_domain = localhost
4b9fee7 @screeley Use an API key for the embed.ly API.
screeley authored
437 # Embedly API Key
438 embedly_api_key =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
439
440cb66 Move gold prices to configuration parameters.
Max Goodman authored
440 # -- prices --
441 gold_month_price = 3.99
442 gold_year_price = 29.99
443
e683889 @jedberg New Features
jedberg authored
444 # -- limits --
445 # rate limiter duration (minutes)
446 RATELIMIT = 10
447 # minimum display karma
448 MIN_UP_KARMA = 1
449 MIN_RATE_LIMIT_KARMA = 10
450 MIN_RATE_LIMIT_COMMENT_KARMA = 1
451 QUOTA_THRESHOLD = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
452 # Links and comments older than this many days qualify for historic preservation
453 REPLY_AGE_LIMIT = 180
68a06c5 @spladug April 2011 Merge
spladug authored
454 # Links and comments older than this many days can't be voted on
455 VOTE_AGE_LIMIT = 180
856a67e @alienth Ignore reports older than the report age limit.
alienth authored
456 # Reports on links and comments older than this many days are ignored
457 REPORT_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored
458 # minimum age, in days, of an account to be eligible to create a community
459 min_membership_create_community = 30
a42505c @spladug Keep admin cookie around if actively used.
spladug authored
460 # the maximum life of an admin cookie (seconds)
461 ADMIN_COOKIE_TTL = 32400
462 # the maximum amount of idle time for an admin cookie (seconds)
463 ADMIN_COOKIE_MAX_IDLE = 900
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
464 # the maximum life of an otp cookie
465 OTP_COOKIE_TTL = 604800
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
466
467 # time in days
468 MODWINDOW = 2
e683889 @jedberg New Features
jedberg authored
469 HOT_PAGE_AGE = 1000
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
470
e683889 @jedberg New Features
jedberg authored
471 # -- display options --
472 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored
473 rising_period = 12 hours
e683889 @jedberg New Features
jedberg authored
474 # max number of comments (default)
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
475 num_comments = 100
476 # max number of comments (non-gold)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
477 max_comments = 500
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
478 # max number of comments (gold)
479 max_comments_gold = 2500
e683889 @jedberg New Features
jedberg authored
480 # list of reddits to auto-subscribe users to
481 automatic_reddits =
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
482 # special reddit that only reddit gold subscribers can use
483 lounge_reddit =
e683889 @jedberg New Features
jedberg authored
484 # 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
485 num_default_reddits = 10
e683889 @jedberg New Features
jedberg authored
486 # how deep do we go into the top listing when fetching /random
487 num_serendipity = 250
852b989 srbar updates
Mike authored
488 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
489
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
490 # Conflate visits to a comment page that happen within this many
491 # seconds of each other
492 comment_visits_period = 600
493
e683889 @jedberg New Features
jedberg authored
494 #user-agents to rate-limit
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
495 agents =
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
496 # subreddit ratelimits
497 sr_banned_quota = 10000
db7b531 Change moderator adding to an invite system.
Max Goodman authored
498 sr_moderator_invite_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
499 sr_contributor_quota = 10000
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
500 sr_wikibanned_quota = 10000
501 sr_wikicontributor_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
502 sr_quota_time = 7200
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
503
e683889 @jedberg New Features
jedberg authored
504 # -- email --
505 # smtp server
506 smtp_server = localhost
507 # delay before allowing a link to be shared
508 new_link_share_delay = 30 seconds
509 # alerter emails
510 nerds_email = nerds@reddit.com
511 # share reply email
512 share_reply = noreply@reddit.com
513 # feedback email
514 feedback_email = reddit@gmail.com
7ce107f @KeyserSosa sharing
KeyserSosa authored
515
51bcbfb @bsimpson63 Method _key_from_url() now returns case sensitive results for special do...
bsimpson63 authored
516 # Special case sensitive domains
517 case_sensitive_domains = i.imgur.com, youtube.com
518
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
519 # Number of days to keep recent wiki revisions for
520 wiki_keep_recent_days = 7
521
522 # Max number of bytes for wiki pages
523 wiki_max_page_length_bytes = 262144
524
525 # Max wiki page name length
526 wiki_max_page_name_length = 128
527
528 # Max number of separators in a wiki page name
529 wiki_max_page_separators = 3
530
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
531 # Location (directory) for temp files for diff3 merging
532 # Empty will use python default for temp files
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
533 # Pro tip: Use /dev/shm for in-memory diff3
534 diff3_temp_location =
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
535
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
536 [server:main]
537 use = egg:Paste#http
538 host = 0.0.0.0
e683889 @jedberg New Features
jedberg authored
539 port = %(http_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
540
541 [app:main]
542 use = egg:r2
543 cache_dir = %(here)s/data
544 beaker.session_key = r2
545 beaker.session_secret = somesecret
546 #lang = en
547
548 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
549 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
550 # execute malicious code after an exception is raised.
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
551 #set debug = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
552
f495dad @spladug Add ZooKeeper-based dynamic configuration system.
spladug authored
553 # the following configuration section makes up the "live" config. if zookeeper
554 # is enabled, then this configuration will be found by the app in zookeeper. to
555 # write it to zookeeper, use the writer script: scripts/write_live_config.
556 [live_config]
4a4543b @spladug Move frontpage_dart option into new live config.
spladug authored
557 # make frontpage 100% dart
558 frontpage_dart = false
c337280 @spladug fastlane: Separate votes on some links and their comments.
spladug authored
559 # links that get their own infrastructure (comma-delimited list of id36s)
560 fastlane_links =
b1ed5e0 @shlurbee Move sr discovery links to zookeeper
shlurbee authored
561 # spotlight links for subreddit discovery
562 sr_discovery_links =
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
563 # probability of the subreddit suggester showing up in the spotlight box
564 # for users that have at some point edited their subscriptions:
613b27d Add subreddit interest discovery bar.
Max Goodman authored
565 spotlight_interest_sub_p = .05
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
566 # and for users that have not ever subscribed:
613b27d Add subreddit interest discovery bar.
Max Goodman authored
567 spotlight_interest_nosub_p = .1
2868e65 Randomly assign comment tree implementation to new links.
Logan Hanks authored
568 # map of comment tree version to how frequently it should be chosen relative to
569 # the others
43e2900 Update example.ini to enable only comment tree v1.
Logan Hanks authored
570 comment_tree_version_weights = 1:1, 2:0
4024dd5 Markdownify goldvertisements.
Max Goodman authored
571 # markdown message blurbs for the front page sidebar gold ad.
572 # use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
4d86ad0 Add small front page gold advertisement.
Max Goodman authored
573 goldvertisement_blurbs = "Make reddit better. Try %(reddit_gold)." "This year, give the gift of %(reddit_gold)s.|(and you should probably also give some other, better gifts)"
099b6af Whisper sweet nothings to the goldmembers.
Max Goodman authored
574 goldvertisement_has_gold_blurbs = "**&ldquo;Exquisite!&rdquo;** \nGrab a drink and join us in [the lounge](/r/lounge)."
Something went wrong with that request. Please try again.