Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 400 lines (333 sloc) 11.759 kb
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
1 #
2 # r2 - Pylons development environment configuration
3 #
4 # The %(here)s variable will be replaced with the parent directory of this file
5 #
6 [DEFAULT]
e683889 @jedberg New Features
jedberg authored
7
8 # -- debug and configuation flags --
9 # global debug flag -- displays pylons stacktrace rather than 500 page on error when true
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
10 debug = true
5e2f134 @chromakode Make template_debug skip stripping whitespace.
chromakode authored
11 # enables/disables template caching and whitespace removal (for development)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
12 template_debug = true
e683889 @jedberg New Features
jedberg authored
13 # use uncompressed static files (out of /static/js and /static/css)
14 # rather than compressed files out of /static (for development if true)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
15 uncompressedJS = true
e683889 @jedberg New Features
jedberg authored
16 # enable/disable verbose SQL printing
9813d94 @jedberg Make reddit compatible with Postgres 8.3 and Python 2.6
jedberg authored
17 sqlprinting = false
e683889 @jedberg New Features
jedberg authored
18 # enable/disable writing errors as they occur to a rabbit-mq queue
a402d48 New features:
Mike authored
19 exception_logging = false
e683889 @jedberg New Features
jedberg authored
20 # whether to print a "reddit app started" message at start"
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
21 log_start = true
e683889 @jedberg New Features
jedberg authored
22 # enable/disable logging for amqp/rabbitmq
23 amqp_logging = false
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
24 # emergency measures: makes the site read only
25 read_only_mode = false
68a06c5 @spladug April 2011 Merge
spladug authored
26 # global switch for wiki write permissions
27 allow_wiki_editing = true
4758ac8 @spladug Make read-only mode slightly less frustrating.
spladug authored
28 # a modified read only mode used for cache shown during heavy load 503s
29 heavy_load_mode = false
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
30
e683889 @jedberg New Features
jedberg authored
31 # -- SECRETS! <-- update these first! --
32 # global secret
33 SECRET = abcdefghijklmnopqrstuvwxyz0123456789
34 # secret for making the modhash
35 MODSECRET = abcdefghijklmnopqrstuvwxyz0123456789
36 # secret for /prefs/feeds
37 FEEDSECRET = abcdefghijklmnopqrstuvwxyz0123456789
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
38
7fff900 @ketralnis February 2011 Merge
ketralnis authored
39 INDEXTANK_API_URL =
40
d411cd5 Added support for disabling adds via config file
westmaas authored
41 # -- feature toggles --
42 disable_ads = false
92fdd42 Added option to disable captcha verification
gabe authored
43 disable_captcha = false
d411cd5 Added support for disabling adds via config file
westmaas authored
44
e683889 @jedberg New Features
jedberg authored
45 # -- important settings --
46 # the domain that this app serves itself up as
7fff900 @ketralnis February 2011 Merge
ketralnis authored
47 domain = reddit.local
68a06c5 @spladug April 2011 Merge
spladug authored
48 # the short domain (like redd.it)
49 shortdomain =
e683889 @jedberg New Features
jedberg authored
50 # if you use www for the old-timey feel, put it here
51 domain_prefix =
52 # the user used for "system" operations and messages
53 system_user = reddit
54 # list of admin accounts
55 admins = reddit
56 # the default subreddit for submissions
57 default_sr = reddit.com
e6178be Make default header image URL configurable.
westmaas authored
58 # default header image url
59 default_header_url = /static/reddit.com.header.png
e683889 @jedberg New Features
jedberg authored
60
61 # time for the page cache (for unlogged in users)
62 page_cache_time = 90
63
64 # default localization for strings (when using python's locale.format)
65 locale = C
66 # default site language (two letter character code)
67 lang = en
68 # if your webserver is a proxy and on a different instance, use
69 # X-forwarded-for and set this to the webserver's IP
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
70 proxy_addr =
e683889 @jedberg New Features
jedberg authored
71 # hash for validating HTTP_TRUE_CLIENT_IP_HASH
72 ip_hash =
73 # timezone for storing
74 timezone = UTC
75 # timezone for the database
76 display_timezone = MST
77 # secret key for accessing /shutdown
78 shutdown_secret = 12345
79 # list of servers that the service monitor will care about
80 monitored_servers = reddit, localhost
81 # name of the cookie to drop with login information
82 login_cookie = reddit_session
83
84 # set to a path to enable per-request logging
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
85 log_path =
e683889 @jedberg New Features
jedberg authored
86 # fraction of requests to pass into the queue-based usage sampler
87 usage_sampling = 0.
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
88
e683889 @jedberg New Features
jedberg authored
89 # account used for default feedback messaging (can be #subreddit)
90 admin_message_acct = reddit
91
92
93 # -- caching options --
94 # data cache (used for caching Thing objects)
95 num_mc_clients = 5
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
96 memcaches = 127.0.0.1:11211
7fff900 @ketralnis February 2011 Merge
ketralnis authored
97 stalecaches =
e683889 @jedberg New Features
jedberg authored
98 # render caches (the second is "remote" and the local is optional but in the same format)
99 local_rendercache =
ae6ba7a added a separate set of memcaches for the render cache
spez authored
100 rendercaches = 127.0.0.1:11211
e683889 @jedberg New Features
jedberg authored
101 # cache for storing service monitor information
102 servicecaches = 127.0.0.1:11211
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
103
67814d5 @ketralnis Features:
ketralnis authored
104 # -- permacache options --
105 # permacache is memcaches -> cassanda -> memcachedb
106 # memcaches that sit in front of cassandra
107 permacache_memcaches = 127.0.0.1:11211
108 # cassandra hosts. one of these will be chosen at random by pycassa
9a4271f @KeyserSosa Upgrade Instructions
KeyserSosa authored
109 cassandra_seeds = 127.0.0.1:9160
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
110 # read/write consistency levels for Cassandra
111 cassandra_rcl = ONE
7fff900 @ketralnis February 2011 Merge
ketralnis authored
112 cassandra_wcl = ONE
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
113
e683889 @jedberg New Features
jedberg authored
114 # -- url cache options --
115 url_caches = 127.0.0.1:11211
116 # cassandra hosts. one of these will be chosen at random by pycassa
117 url_seeds =
118
119
120 # caches for storing number of times a link is rendered
121 incr_cache = udp:localhost:11211
122 incr_caches = localhost:11211
123 # recommender cache (depricated)
124 rec_cache = 127.0.0.1:11211
125
126 ## -- traffic tracking urls --
127 # image to render to track pageviews
128 tracker_url = /static/pixel.png
129 # images to render to track sponsored links
130 adtracker_url = /static/pixel.png
131 # image to render to track the ad frame
132 adframetracker_url = http://pixel.reddit.com/pixel/of_defenestration.png
133 # open redirector to bounce clicks off of on sponsored links for tracking
134 clicktracker_url = /static/pixel.png
7fff900 @ketralnis February 2011 Merge
ketralnis authored
135 # new pixel
136 newtracker_url =
e683889 @jedberg New Features
jedberg authored
137
138 # amqp
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
139 amqp_host = localhost:5672
e683889 @jedberg New Features
jedberg authored
140 amqp_user = reddit
141 amqp_pass = reddit
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
142 amqp_virtual_host = /
143
e683889 @jedberg New Features
jedberg authored
144 ## -- database setup --
145 # list of all databases named in the subsequent table
146 databases = main, comment, vote, email, authorize, award, hc
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
147
7fff900 @ketralnis February 2011 Merge
ketralnis authored
148 db_user = reddit
149 db_pass = password
150 db_port = 5432
151 db_pool_size = 3
152 db_pool_overflow_size = 3
153
154 #db name db host user, pass, port, conn, overflow_conn
155 main_db = reddit, 127.0.0.1, *, *, *, *, *
156 comment_db = reddit, 127.0.0.1, *, *, *, *, *
157 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
158 vote_db = reddit, 127.0.0.1, *, *, *, *, *
159 email_db = reddit, 127.0.0.1, *, *, *, *, *
160 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
161 award_db = reddit, 127.0.0.1, *, *, *, *, *
162 hc_db = reddit, 127.0.0.1, *, *, *, *, *
e683889 @jedberg New Features
jedberg authored
163
7fff900 @ketralnis February 2011 Merge
ketralnis authored
164 hardcache_categories = *:hc:hc
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
165
e683889 @jedberg New Features
jedberg authored
166 # this setting will prefix all of the table names
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
167 db_app_name = reddit
e683889 @jedberg New Features
jedberg authored
168 # are we allowed to create tables?
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
169 db_create_tables = True
170
171 type_db = main
172 rel_type_db = main
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
173 hardcache_db = main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
174
175 db_table_link = thing, main, main
176 db_table_account = thing, main
177 db_table_message = thing, main
178
179 db_table_savehide = relation, account, link, main
180 db_table_click = relation, account, link, main
181
182 db_table_comment = thing, comment
183 db_table_subreddit = thing, comment
184
185 db_table_srmember = relation, subreddit, account, comment
186
187 db_table_friend = relation, account, account, comment
188
189 db_table_vote_account_link = relation, account, link, vote
190 db_table_vote_account_comment = relation, account, comment, vote
191
780d9bb @KeyserSosa example.ini bugfixes and first trials of site traffic integration
KeyserSosa authored
192 db_table_inbox_account_comment = relation, account, comment, main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
193 db_table_inbox_account_message = relation, account, message, main
e683889 @jedberg New Features
jedberg authored
194 db_table_moderatorinbox = relation, subreddit, message, main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
195
196 db_table_report_account_link = relation, account, link, main
197 db_table_report_account_comment = relation, account, comment, comment
198 db_table_report_account_message = relation, account, message, main
199 db_table_report_account_subreddit = relation, account, subreddit, main
200
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
201 db_table_award = thing, award
202 db_table_trophy = relation, account, award, award
203
e683889 @jedberg New Features
jedberg authored
204 db_table_jury_account_link = relation, account, link, main
205
a402d48 New features:
Mike authored
206 db_table_ad = thing, main
207 db_table_adsr = relation, ad, subreddit, main
208
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
209 disallow_db_writes = False
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
210
e683889 @jedberg New Features
jedberg authored
211
212 ## -- traffic analytics --
213 # google analytics token
214 googleanalytics =
215 # machine to get traffic metrics from
216 traffic_url = http://localhost:8010/tracker/pickle/
217 # secret used for talking to the traffic machine
218 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
219
220
221 ## -- Self-service sponsored link stuff --
222 # (secure) payment domain
7fff900 @ketralnis February 2011 Merge
ketralnis authored
223 payment_domain = http://reddit.local/
224 ad_domain = http://reddit.local
225 allowed_pay_countries = United States, United Kingdom, Canada
253c473 @jedberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
226 sponsors =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
227
228 # authorize.net credentials (blank authorizenetapi to disable)
229 authorizenetapi =
230 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
e683889 @jedberg New Features
jedberg authored
231 authorizenetname =
232 authorizenetkey =
7fff900 @ketralnis February 2011 Merge
ketralnis authored
233
e683889 @jedberg New Features
jedberg authored
234 min_promote_bid = 20
235 max_promote_bid = 9999
236 min_promote_future = 2
237
238 # -- spreadshirt --
239 spreadshirt_url =
240 spreadshirt_vendor_id =
241 spreadshirt_min_font = 42
242 spreadshirt_max_width = 620
243 spreadshirt_test_font =
244
245
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
246 ###
247 # Other magic settings
248 ###
249
e683889 @jedberg New Features
jedberg authored
250 # list of cnames allowed to render as reddit.com without a frame
251 authorized_cnames =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
252
e683889 @jedberg New Features
jedberg authored
253 # -- query cache settings --
254 num_query_queue_workers = 5
255 query_queue_worker = http://cslowe.local:8000
256 enable_doquery = True
7fff900 @ketralnis February 2011 Merge
ketralnis authored
257 use_query_cache = True
e683889 @jedberg New Features
jedberg authored
258 write_query_queue = True
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
259
e683889 @jedberg New Features
jedberg authored
260 # -- stylesheet editor --
261 # disable custom stylesheets
262 css_killswitch = False
263 # list of "trusted" domains that can be referenced in url()
264 allowed_css_linked_domains = static.reddit.com, www.reddit.com, reallystatic.reddit.com
265 # max number of uploaded images per subreddit
266 max_sr_images = 50
267 # default stylesheet and it's rtl version
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
268 stylesheet = reddit.css
e683889 @jedberg New Features
jedberg authored
269 stylesheet_rtl = reddit-rtl.css
270 # location of the static directory
271 static_path = /static/
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
272
7fff900 @ketralnis February 2011 Merge
ketralnis authored
273 # make frontpage 100% dart
274 frontpage_dart = false
275
e683889 @jedberg New Features
jedberg authored
276 # -- translator UI --
277 # enable/disable access to the translation UI in /admin/i18n
278 translator = true
279 # reddit runs the translator UI on a different instance with a
280 # password to login. These settings are used when generating messages
281 # to translators to tell them their credentials
282 translator_username =
283 translator_password =
6bcef00 @ketralnis 1. Allow a reddit to have a cname, like www.proggit.com, that renders
ketralnis authored
284
e683889 @jedberg New Features
jedberg authored
285 # subreddit used for DMCA takedowns
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
286 takedown_sr = _takedowns
e683889 @jedberg New Features
jedberg authored
287 # png compressor
288 png_optimizer = /usr/bin/env optipng
289 # bad words that should be *'d out
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
290 profanity_wordlist =
e683889 @jedberg New Features
jedberg authored
291 # which markdown backent to use (c = discount, py = markdown.py)
292 markdown_backend = c
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
293
e683889 @jedberg New Features
jedberg authored
294 # -- search --
295 # where is solor?
296 solr_url =
297 # how long do we cache search results (in seconds)
f6fbb05 @ketralnis Cache solr query results for a short time. Speeds up domain listings and...
ketralnis authored
298 solr_cache_time = 300
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
299
e683889 @jedberg New Features
jedberg authored
300 # Just a list of words. Used by errlog.py to make up names for new errors.
301 words_file = /usr/dict/words
2869eaf @ketralnis New features:
ketralnis authored
302
e683889 @jedberg New Features
jedberg authored
303 # -- media stuff --
304 # user agent for the scraper
305 useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
306 # your s3 credentials
307 S3KEY_ID =
308 S3SECRET_KEY =
309 # s3 bucket
310 s3_thumb_bucket = test.your.domain.here
bcca862 add media features
shuffman authored
311 default_thumb = /static/noimage.png
08c431b @KeyserSosa * Comply with the spec on 304 errors so Chrome won't barf download.gz a...
KeyserSosa authored
312 self_thumb = /static/self_default2.png
e683889 @jedberg New Features
jedberg authored
313 media_domain = localhost
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
314
e683889 @jedberg New Features
jedberg authored
315 # -- limits --
316 # rate limiter duration (minutes)
317 RATELIMIT = 10
318 # minimum display karma
319 MIN_UP_KARMA = 1
320 MIN_RATE_LIMIT_KARMA = 10
321 MIN_RATE_LIMIT_COMMENT_KARMA = 1
322 QUOTA_THRESHOLD = 5
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
323 # Links and comments older than this many days qualify for historic preservation
324 REPLY_AGE_LIMIT = 180
68a06c5 @spladug April 2011 Merge
spladug authored
325 # Links and comments older than this many days can't be voted on
326 VOTE_AGE_LIMIT = 180
63d518f Make min age for subreddit creation configurable.
gabe authored
327 # minimum age, in days, of an account to be eligible to create a community
328 min_membership_create_community = 30
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
329
e683889 @jedberg New Features
jedberg authored
330 # min amount of karma to edit
331 WIKI_KARMA = 100
2de837f New help system and footer
Mike authored
332
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
333 # time in days
334 MODWINDOW = 2
e683889 @jedberg New Features
jedberg authored
335 HOT_PAGE_AGE = 1000
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
336
e683889 @jedberg New Features
jedberg authored
337 # -- display options --
338 # how long to consider links eligible for the rising page
bcca862 add media features
shuffman authored
339 rising_period = 12 hours
e683889 @jedberg New Features
jedberg authored
340 # max number of comments (default)
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
341 num_comments = 100
342 # max number of comments (non-gold)
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
343 max_comments = 500
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
344 # max number of comments (gold)
345 max_comments_gold = 2500
e683889 @jedberg New Features
jedberg authored
346 # list of reddits to auto-subscribe users to
347 automatic_reddits =
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
348 # special reddit that only reddit gold subscribers can use
349 lounge_reddit =
e683889 @jedberg New Features
jedberg authored
350 # 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
351 num_default_reddits = 10
e683889 @jedberg New Features
jedberg authored
352 # how deep do we go into the top listing when fetching /random
353 num_serendipity = 250
852b989 srbar updates
Mike authored
354 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
355
37e2ba9 @ketralnis * Combine cassandra clusters into a single one
ketralnis authored
356 # Conflate visits to a comment page that happen within this many
357 # seconds of each other
358 comment_visits_period = 600
359
68a06c5 @spladug April 2011 Merge
spladug authored
360 # Set this to a nonzero range and the server will restart after this many
361 # minutes have passed
362 LOGANS_RUN_LOW = 0
363 LOGANS_RUN_HIGH = 0
364
e683889 @jedberg New Features
jedberg authored
365 #user-agents to rate-limit
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
366 agents =
367
e683889 @jedberg New Features
jedberg authored
368 # -- email --
369 # smtp server
370 smtp_server = localhost
371 # delay before allowing a link to be shared
372 new_link_share_delay = 30 seconds
373 # alerter emails
374 nerds_email = nerds@reddit.com
375 # share reply email
376 share_reply = noreply@reddit.com
377 # feedback email
378 feedback_email = reddit@gmail.com
7ce107f @KeyserSosa sharing
KeyserSosa authored
379
51bcbfb @bsimpson63 Method _key_from_url() now returns case sensitive results for special do...
bsimpson63 authored
380 # Special case sensitive domains
381 case_sensitive_domains = i.imgur.com, youtube.com
382
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
383 [server:main]
384 use = egg:Paste#http
385 host = 0.0.0.0
e683889 @jedberg New Features
jedberg authored
386 port = %(http_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
387
388 [app:main]
389 use = egg:r2
390 cache_dir = %(here)s/data
391 beaker.session_key = r2
392 beaker.session_secret = somesecret
393 #lang = en
394
395 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
396 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
397 # execute malicious code after an exception is raised.
0ae8f2f @ketralnis 21 Jul 2010 merge
ketralnis authored
398 #set debug = false
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
399
Something went wrong with that request. Please try again.