Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 532 lines (463 sloc) 17.046 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 instal…
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 instal…
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
d411cd5 Added support for disabling adds via config file
westmaas authored
63 # -- feature toggles --
64 disable_ads = false
92fdd42 Added option to disable captcha verification
gabe authored
65 disable_captcha = false
1ecb427 @andre-d Add an option to disable rate limiting. For testing.
andre-d authored
66 disable_ratelimit = false
1db68ce @spladug Require two-factor authentication to enable admin mode.
spladug authored
67 disable_require_admin_otp = false
d411cd5 Added support for disabling adds via config file
westmaas authored
68
e683889 @jedberg New Features
jedberg authored
69 # -- important settings --
70 # the domain that this app serves itself up as
7fff900 @ketralnis February 2011 Merge
ketralnis authored
71 domain = reddit.local
68a06c5 @spladug April 2011 Merge
spladug authored
72 # the short domain (like redd.it)
73 shortdomain =
e683889 @jedberg New Features
jedberg authored
74 # if you use www for the old-timey feel, put it here
75 domain_prefix =
7118bde @spladug Turn CNAMEs into a simple redirect.
spladug authored
76 # subdomains that don't need special processing
77 reserved_subdomains = www, ssl
e683889 @jedberg New Features
jedberg authored
78 # the user used for "system" operations and messages
79 system_user = reddit
80 # list of admin accounts
81 admins = reddit
82 # the default subreddit for submissions
83 default_sr = reddit.com
e6178be Make default header image URL configurable.
westmaas authored
84 # default header image url
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
85 default_header_url = reddit.com.header.png
e683889 @jedberg New Features
jedberg authored
86
87 # time for the page cache (for unlogged in users)
88 page_cache_time = 90
a8c6631 @spladug Comment Pane Cache: make cache lifetime configurable in INI.
spladug authored
89 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
90 commentpane_cache_time = 120
e683889 @jedberg New Features
jedberg authored
91
92 # default localization for strings (when using python's locale.format)
93 locale = C
94 # default site language (two letter character code)
01146c3 @kemitche Remove unused r2.po and friends from repo
kemitche authored
95 site_lang = en
c280c6a Fix handling of an unset language override.
Max Goodman authored
96 lang_override =
e7b672d @spladug Replace proxy_addr with option to trust proxies in 10.0.0.0/8.
spladug authored
97 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
98 # set X-forwarded-for and set this to true
99 trust_local_proxies = false
e683889 @jedberg New Features
jedberg authored
100 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
101 ip_hash =
102 # timezone for storing
103 timezone = UTC
104 # timezone for the database
105 display_timezone = MST
106 # secret key for accessing /shutdown
107 shutdown_secret = 12345
b847757 Use cross domain https for slightly safer login.
Max Goodman authored
108 # https api endpoint (must be g.domain or a subdomain of g.domain)
109 https_endpoint =
e683889 @jedberg New Features
jedberg authored
110 # name of the cookie to drop with login information
111 login_cookie = reddit_session
33b15bc @spladug Split the admin cookie out from the session cookie.
spladug authored
112 # name of the admin cookie
113 admin_cookie = reddit_admin
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
114 # name of the otp cookie
115 otp_cookie = reddit_otp
2a8cc84 @spladug Refactor user authentication to be more modular.
spladug authored
116 # how to authenticate users. see r2/lib/authentication.py for options
117 authentication_provider = cookie
a311805 @spladug Switch to bcrypt for password hashing.
spladug authored
118 # the work factor for bcrypt, increment this every time computers double in
119 # speed. don't worry, changing this won't break old passwords
120 bcrypt_work_factor = 12
e683889 @jedberg New Features
jedberg authored
121
122 # fraction of requests to pass into the queue-based usage sampler
123 usage_sampling = 0.
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
124
987be0d @kemitche Replace reference to #subreddit with /r/subreddit
kemitche authored
125 # account used for default feedback messaging (can be /r/subreddit)
e683889 @jedberg New Features
jedberg authored
126 admin_message_acct = reddit
127
128
129 # -- caching options --
130 # data cache (used for caching Thing objects)
131 num_mc_clients = 5
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
132 memcaches = 127.0.0.1:11211
ab039b4 @spladug Use a different set of memcaches for locking.
spladug authored
133 # caches to use for locking
134 lockcaches = 127.0.0.1:11211
7fff900 @ketralnis February 2011 Merge
ketralnis authored
135 stalecaches =
e683889 @jedberg New Features
jedberg authored
136 # render caches (the second is "remote" and the local is optional but in the same format)
137 local_rendercache =
ae6ba7a added a separate set of memcaches for the render cache
spez authored
138 rendercaches = 127.0.0.1:11211
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
139
67814d5 @ketralnis Features:
ketralnis authored
140 # -- permacache options --
141 # permacache is memcaches -> cassanda -> memcachedb
142 # memcaches that sit in front of cassandra
143 permacache_memcaches = 127.0.0.1:11211
144 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f @KeyserSosa Upgrade Instructions
KeyserSosa authored
145 cassandra_seeds = 127.0.0.1:9160
fcd3f3b @spladug Make cassandra connection pool size configurable.
spladug authored
146 # number of connections to keep open to the cassandra ring
147 cassandra_pool_size = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
148 # read/write consistency levels for Cassandra
149 cassandra_rcl = ONE
7fff900 @ketralnis February 2011 Merge
ketralnis authored
150 cassandra_wcl = ONE
532be3f @spladug Allow Cassandra models to choose a connection pool.
spladug authored
151 # name of default connection pool to use when _connection_pool not specified
152 cassandra_default_pool = main
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
153
e683889 @jedberg New Features
jedberg authored
154 # -- url cache options --
155 url_caches = 127.0.0.1:11211
156 # cassandra hosts. one of these will be chosen at random by pycassa
157 url_seeds =
158
159
160 # caches for storing number of times a link is rendered
161 incr_cache = udp:localhost:11211
162 incr_caches = localhost:11211
163 # recommender cache (depricated)
164 rec_cache = 127.0.0.1:11211
165
166 ## -- traffic tracking urls --
93a65a6 @spladug Move onload out of the app.
spladug authored
167 # domain to send tracking requests (see scripts/tracker.py)
168 tracking_domain = reddit.local
e683889 @jedberg New Features
jedberg authored
169 # image to render to track pageviews
170 tracker_url = /static/pixel.png
171 # images to render to track sponsored links
172 adtracker_url = /static/pixel.png
173 # image to render to track the ad frame
d433cb2 Remove production pixel URL from example.ini.
Max Goodman authored
174 adframetracker_url = /static/pixel.png
e683889 @jedberg New Features
jedberg authored
175 # open redirector to bounce clicks off of on sponsored links for tracking
176 clicktracker_url = /static/pixel.png
482e864 Fire a pixel for UI flow tracking of sub/unsubscribe.
Max Goodman authored
177 # url to request to track interaction statistics
178 uitracker_url = /static/pixel.png
7fff900 @ketralnis February 2011 Merge
ketralnis authored
179 # new pixel
180 newtracker_url =
e683889 @jedberg New Features
jedberg authored
181
182 # amqp
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
183 amqp_host = localhost:5672
e683889 @jedberg New Features
jedberg authored
184 amqp_user = reddit
185 amqp_pass = reddit
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
186 amqp_virtual_host = /
187
0b09f25 @spladug Add basic support for ZooKeeper via Kazoo.
spladug authored
188 ## -- zookeeper --
189 # optional at the moment
190 zookeeper_connection_string =
191 zookeeper_username =
192 zookeeper_password =
193
e683889 @jedberg New Features
jedberg authored
194 ## -- database setup --
195 # list of all databases named in the subsequent table
9cd5fed @spladug Add traffic to example.ini.
spladug authored
196 databases = main, comment, vote, email, authorize, award, hc, traffic
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
197
7fff900 @ketralnis February 2011 Merge
ketralnis authored
198 db_user = reddit
199 db_pass = password
200 db_port = 5432
201 db_pool_size = 3
202 db_pool_overflow_size = 3
203
204 #db name db host user, pass, port, conn, overflow_conn
205 main_db = reddit, 127.0.0.1, *, *, *, *, *
206 comment_db = reddit, 127.0.0.1, *, *, *, *, *
207 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
208 vote_db = reddit, 127.0.0.1, *, *, *, *, *
209 email_db = reddit, 127.0.0.1, *, *, *, *, *
210 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
211 award_db = reddit, 127.0.0.1, *, *, *, *, *
212 hc_db = reddit, 127.0.0.1, *, *, *, *, *
9cd5fed @spladug Add traffic to example.ini.
spladug authored
213 traffic_db = reddit, 127.0.0.1, *, *, *, *, *
e683889 @jedberg New Features
jedberg authored
214
7fff900 @ketralnis February 2011 Merge
ketralnis authored
215 hardcache_categories = *:hc:hc
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
216
e683889 @jedberg New Features
jedberg authored
217 # this setting will prefix all of the table names
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
218 db_app_name = reddit
e683889 @jedberg New Features
jedberg authored
219 # are we allowed to create tables?
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
220 db_create_tables = True
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored
221 # are we allowed to write at all?
222 disallow_db_writes = False
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
223
224 type_db = main
225 rel_type_db = main
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
226 hardcache_db = main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
227
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored
228 # definitions of what each table is (probably shouldn't change in .update files)
229 # things require no extra info. relation is followed by the names of the related tables
230 db_table_link = thing
231 db_table_account = thing
232 db_table_message = thing
233 db_table_savehide = relation, account, link
234 db_table_click = relation, account, link
235 db_table_comment = thing
236 db_table_subreddit = thing
237 db_table_srmember = relation, subreddit, account
238 db_table_friend = relation, account, account
239 db_table_vote_account_link = relation, account, link
240 db_table_vote_account_comment = relation, account, comment
241 db_table_inbox_account_comment = relation, account, comment
242 db_table_inbox_account_message = relation, account, message
243 db_table_moderatorinbox = relation, subreddit, message
244 db_table_report_account_link = relation, account, link
245 db_table_report_account_comment = relation, account, comment
246 db_table_report_account_message = relation, account, message
247 db_table_report_account_subreddit = relation, account, subreddit
248 db_table_award = thing
249 db_table_trophy = relation, account, award
250 db_table_jury_account_link = relation, account, link
251 db_table_ad = thing
252 db_table_adsr = relation, ad, subreddit
253 db_table_flair = relation, subreddit, account
09dbd49 @shlurbee Update config with new promocampaign thing table
shlurbee authored
254 db_table_promocampaign = thing
9f0ec95 @spladug Split table definitions from db configuration.
spladug authored
255
256 # which servers to find each table on (likely to change in .update files)
257 # first server listed is assumed to be the master, all others are read-only slaves
258 # additionally, a "!avoid_master" flag may be added to specify that reads should use the slaves
259 db_servers_link = main, main
260 db_servers_account = main
261 db_servers_message = main
262 db_servers_savehide = main
263 db_servers_click = main
264 db_servers_comment = comment
265 db_servers_subreddit = comment
266 db_servers_srmember = comment
267 db_servers_friend = comment
268 db_servers_vote_account_link = vote
269 db_servers_vote_account_comment = vote
270 db_servers_inbox_account_comment = main
271 db_servers_inbox_account_message = main
272 db_servers_moderatorinbox = main
273 db_servers_report_account_link = main
274 db_servers_report_account_comment = comment
275 db_servers_report_account_message = main
276 db_servers_report_account_subreddit = main
277 db_servers_award = award
278 db_servers_trophy = award
279 db_servers_jury_account_link = main
280 db_servers_ad = main
281 db_servers_adsr = main
282 db_servers_flair = main
09dbd49 @shlurbee Update config with new promocampaign thing table
shlurbee authored
283 db_servers_promocampaign = main
1861a04 fixed sorting issue where the global sorts were being overwritten. ad…
Steve Huffman authored
284
e683889 @jedberg New Features
jedberg authored
285
286 ## -- traffic analytics --
287 # google analytics token
288 googleanalytics =
289 # machine to get traffic metrics from
290 traffic_url = http://localhost:8010/tracker/pickle/
291 # secret used for talking to the traffic machine
292 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
293
294
295 ## -- Self-service sponsored link stuff --
296 # (secure) payment domain
172f869 Add an example subdomain for payment_domain in example.ini.
Max Goodman authored
297 payment_domain = https://pay.reddit.local/
7fff900 @ketralnis February 2011 Merge
ketralnis authored
298 ad_domain = http://reddit.local
299 allowed_pay_countries = United States, United Kingdom, Canada
253c473 @jedberg * Add services and scripts to public repos for ease of reddit instal…
jedberg authored
300 sponsors =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
301
302 # authorize.net credentials (blank authorizenetapi to disable)
303 authorizenetapi =
304 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 @jedberg New Features
jedberg authored
305 authorizenetname =
306 authorizenetkey =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
307
e683889 @jedberg New Features
jedberg authored
308 min_promote_bid = 20
309 max_promote_bid = 9999
310 min_promote_future = 2
311
312 # -- spreadshirt --
313 spreadshirt_url =
314 spreadshirt_vendor_id =
315 spreadshirt_min_font = 42
316 spreadshirt_max_width = 620
317 spreadshirt_test_font =
318
319
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
320 ###
321 # Other magic settings
322 ###
323
e683889 @jedberg New Features
jedberg authored
324 # list of cnames allowed to render as reddit.com without a frame
325 authorized_cnames =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
326
e683889 @jedberg New Features
jedberg authored
327 # -- query cache settings --
328 num_query_queue_workers = 5
329 query_queue_worker = http://cslowe.local:8000
330 enable_doquery = True
7fff900 @ketralnis February 2011 Merge
ketralnis authored
331 use_query_cache = True
e683889 @jedberg New Features
jedberg authored
332 write_query_queue = True
fbe867e @spladug Implement new lockless query cache.
spladug authored
333 querycache_prune_chance = 0.05
1861a04 fixed sorting issue where the global sorts were being overwritten. ad…
Steve Huffman authored
334
e683889 @jedberg New Features
jedberg authored
335 # -- stylesheet editor --
336 # disable custom stylesheets
337 css_killswitch = False
338 # list of "trusted" domains that can be referenced in url()
339 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
340 # max number of uploaded images per subreddit
341 max_sr_images = 50
342 # default stylesheet and it's rtl version
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
343 stylesheet = reddit.css
e683889 @jedberg New Features
jedberg authored
344 stylesheet_rtl = reddit-rtl.css
345 # location of the static directory
346 static_path = /static/
50a5daa @spladug Allow static files to be served from other domains.
spladug authored
347 # if set, these are the domains used for static files served over http and https
348 # if not set, no domain will be specified
349 static_domain =
350 static_secure_domain =
351 # if this is true, append .gz to CSS and JS files served from the static domain
352 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
353 static_pre_gzipped = false
354 static_secure_pre_gzipped = false
b2ad131 @spladug Subreddit CSS: Store subreddit CSS on S3 and minify it.
spladug authored
355 # which s3 bucket to place subreddit styles on (when empty, stylesheets will be served
356 # from the local database instead.
357 static_stylesheet_bucket =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
358
e683889 @jedberg New Features
jedberg authored
359 # -- translator UI --
360 # enable/disable access to the translation UI in /admin/i18n
361 translator = true
362 # reddit runs the translator UI on a different instance with a
363 # password to login. These settings are used when generating messages
364 # to translators to tell them their credentials
365 translator_username =
366 translator_password =
6bcef00 @ketralnis 1. Allow a reddit to have a cname, like www.proggit.com, that renders
ketralnis authored
367
e683889 @jedberg New Features
jedberg authored
368 # subreddit used for DMCA takedowns
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
369 takedown_sr = _takedowns
e683889 @jedberg New Features
jedberg authored
370 # png compressor
371 png_optimizer = /usr/bin/env optipng
f5b6839 @spladug Losslessly optimize JPEGs.
spladug authored
372 # jpeg compressor
373 jpeg_optimizer =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
374
e683889 @jedberg New Features
jedberg authored
375 # Just a list of words. Used by errlog.py to make up names for new errors.
376 words_file = /usr/dict/words
2869eaf @ketralnis New features:
ketralnis authored
377
e683889 @jedberg New Features
jedberg authored
378 # -- media stuff --
379 # user agent for the scraper
380 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
381
382 # The storage method to use for media
383 # Options:
384 # s3 - Uses Amazon S3 to upload media to buckets
385 media_store = s3
386
e683889 @jedberg New Features
jedberg authored
387 # your s3 credentials
388 S3KEY_ID =
389 S3SECRET_KEY =
4653c16 @andre-d Split thumbnails and sr images across multiple buckets.
andre-d authored
390
391 # This bucket is used for old media, new installs may leave this blank
392 s3_old_thumb_bucket =
393
394 # May be one bucket, or many buckets seperated by commas
395 s3_media_buckets =
396
397 # Store direct urls for images, rather than buckets
398 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
399 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
400 # false: http://mybucket/helloworld.jpg
401 s3_media_direct = true
402
e683889 @jedberg New Features
jedberg authored
403 media_domain = localhost
4b9fee7 @screeley Use an API key for the embed.ly API.
screeley authored
404 # Embedly API Key
405 embedly_api_key =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
406
e683889 @jedberg New Features
jedberg authored
407 # -- limits --
408 # rate limiter duration (minutes)
409 RATELIMIT = 10
410 # minimum display karma
411 MIN_UP_KARMA = 1
412 MIN_RATE_LIMIT_KARMA = 10
413 MIN_RATE_LIMIT_COMMENT_KARMA = 1
414 QUOTA_THRESHOLD = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
415 # Links and comments older than this many days qualify for historic preservation
416 REPLY_AGE_LIMIT = 180
68a06c5 @spladug April 2011 Merge
spladug authored
417 # Links and comments older than this many days can't be voted on
418 VOTE_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored
419 # minimum age, in days, of an account to be eligible to create a community
420 min_membership_create_community = 30
a42505c @spladug Keep admin cookie around if actively used.
spladug authored
421 # the maximum life of an admin cookie (seconds)
422 ADMIN_COOKIE_TTL = 32400
423 # the maximum amount of idle time for an admin cookie (seconds)
424 ADMIN_COOKIE_MAX_IDLE = 900
8dfd73b @spladug Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
425 # the maximum life of an otp cookie
426 OTP_COOKIE_TTL = 604800
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
427
428 # time in days
429 MODWINDOW = 2
e683889 @jedberg New Features
jedberg authored
430 HOT_PAGE_AGE = 1000
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
431
e683889 @jedberg New Features
jedberg authored
432 # -- display options --
433 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored
434 rising_period = 12 hours
e683889 @jedberg New Features
jedberg authored
435 # max number of comments (default)
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
436 num_comments = 100
437 # max number of comments (non-gold)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
438 max_comments = 500
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
439 # max number of comments (gold)
440 max_comments_gold = 2500
e683889 @jedberg New Features
jedberg authored
441 # list of reddits to auto-subscribe users to
442 automatic_reddits =
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
443 # special reddit that only reddit gold subscribers can use
444 lounge_reddit =
e683889 @jedberg New Features
jedberg authored
445 # 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
446 num_default_reddits = 10
e683889 @jedberg New Features
jedberg authored
447 # how deep do we go into the top listing when fetching /random
448 num_serendipity = 250
852b989 srbar updates
Mike authored
449 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
450
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
451 # Conflate visits to a comment page that happen within this many
452 # seconds of each other
453 comment_visits_period = 600
454
e683889 @jedberg New Features
jedberg authored
455 #user-agents to rate-limit
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
456 agents =
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
457 # subreddit ratelimits
458 sr_banned_quota = 10000
db7b531 Change moderator adding to an invite system.
Max Goodman authored
459 sr_moderator_invite_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
460 sr_contributor_quota = 10000
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
461 sr_wikibanned_quota = 10000
462 sr_wikicontributor_quota = 10000
a8d55dd @kemitche Set ratelimits on subreddits
kemitche authored
463 sr_quota_time = 7200
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
464
e683889 @jedberg New Features
jedberg authored
465 # -- email --
466 # smtp server
467 smtp_server = localhost
468 # delay before allowing a link to be shared
469 new_link_share_delay = 30 seconds
470 # alerter emails
471 nerds_email = nerds@reddit.com
472 # share reply email
473 share_reply = noreply@reddit.com
474 # feedback email
475 feedback_email = reddit@gmail.com
7ce107f @KeyserSosa sharing
KeyserSosa authored
476
51bcbfb @bsimpson63 Method _key_from_url() now returns case sensitive results for special…
bsimpson63 authored
477 # Special case sensitive domains
478 case_sensitive_domains = i.imgur.com, youtube.com
479
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
480 # Number of days to keep recent wiki revisions for
481 wiki_keep_recent_days = 7
482
483 # Max number of bytes for wiki pages
484 wiki_max_page_length_bytes = 262144
485
486 # Max wiki page name length
487 wiki_max_page_name_length = 128
488
489 # Max number of separators in a wiki page name
490 wiki_max_page_separators = 3
491
492 # Disable wiki editing and viewing for everyone except admins
493 wiki_disabled = false
494
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
495 # Location (directory) for temp files for diff3 merging
496 # Empty will use python default for temp files
5fe4e99 @andre-d Wiki: Base wiki code
andre-d authored
497 # Pro tip: Use /dev/shm for in-memory diff3
498 diff3_temp_location =
ebab524 @andre-d Diff3: Added diff3 wrapper
andre-d authored
499
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
500 [server:main]
501 use = egg:Paste#http
502 host = 0.0.0.0
e683889 @jedberg New Features
jedberg authored
503 port = %(http_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
504
505 [app:main]
506 use = egg:r2
507 cache_dir = %(here)s/data
508 beaker.session_key = r2
509 beaker.session_secret = somesecret
510 #lang = en
511
512 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
513 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
514 # execute malicious code after an exception is raised.
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
515 #set debug = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
516
f495dad @spladug Add ZooKeeper-based dynamic configuration system.
spladug authored
517 # the following configuration section makes up the "live" config. if zookeeper
518 # is enabled, then this configuration will be found by the app in zookeeper. to
519 # write it to zookeeper, use the writer script: scripts/write_live_config.
520 [live_config]
4a4543b @spladug Move frontpage_dart option into new live config.
spladug authored
521 # make frontpage 100% dart
522 frontpage_dart = false
c337280 @spladug fastlane: Separate votes on some links and their comments.
spladug authored
523 # links that get their own infrastructure (comma-delimited list of id36s)
524 fastlane_links =
b1ed5e0 @shlurbee Move sr discovery links to zookeeper
shlurbee authored
525 # spotlight links for subreddit discovery
526 sr_discovery_links =
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
527 # probability of the subreddit suggester showing up in the spotlight box
528 # for users that have at some point edited their subscriptions:
613b27d Add subreddit interest discovery bar.
Max Goodman authored
529 spotlight_interest_sub_p = .05
1b6423a @spladug example.ini: Document subreddit suggester live config options.
spladug authored
530 # and for users that have not ever subscribed:
613b27d Add subreddit interest discovery bar.
Max Goodman authored
531 spotlight_interest_nosub_p = .1
Something went wrong with that request. Please try again.