Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 624 lines (547 sloc) 21.738 kb
abe385c Keith Mitchell 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
3366083 Neil Williams Create a vault for secret tokens and move some into it.
spladug authored
10 [secrets]
11 # the tokens in this section are base64 encoded
12 # general purpose secret
13 SECRET = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
14 # secret for /prefs/feeds
15 FEEDSECRET = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
16 # used for authenticating admin API calls w/o cookie
17 ADMINSECRET = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
f788572 Neil Williams Add integration with websocket server "sutro".
spladug authored
18 # used to securely authenticate websocket requests to sutro
19 websocket = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
f8bf988 Neil Williams Move ip_hash to secret vault and rename it to "true_ip".
spladug authored
20 # secret for validating HTTP_TRUE_CLIENT_IP_HASH as sent by the CDN
21 true_ip =
a6063c5 Neil Williams Start adding credentials to media embed iframe URLs.
spladug authored
22 # secret for authenticating private media embeds
23 media_embed = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
3366083 Neil Williams Create a vault for secret tokens and move some into it.
spladug authored
24
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
25 [DEFAULT]
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
26 ############################################ SITE-SPECIFIC OPTIONS
27 #### Appearance
28 # the site's tagline, used in the title and description
29 short_description = open source is awesome
30 # default site interface language (two letter character code)
31 site_lang = en
32 # default header image url
33 default_header_url = reddit.com.header.png
34
35 #### Domains
36 # the domain that this app expects to be accessed on
37 domain = reddit.local
38 # the short domain (like redd.it)
39 shortdomain =
40 # if you use www for the old-timey feel, put it here
41 domain_prefix =
42 # subdomains that don't need special processing
43 reserved_subdomains = www, ssl
ca27231 Andre d toolbar: Fix embed for offsite subdomains like blog.
andre-d authored
44 # subdomains that are not reddit instances
45 offsite_subdomains =
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
46 # https api endpoint (must be g.domain or a subdomain of g.domain)
47 https_endpoint =
48 # (secure) payment domain for self-serve ads
49 payment_domain = https://pay.reddit.local/
50 # base url where 300x250 ad units (sidebar) are hosted
51 ad_domain = http://reddit.local
52 # domain where sutro websocket server is hosted
53 websocket_host = %(domain)s
54
55 #### Accounts and Subreddits
56 # the user used for "system" operations and private messages
57 system_user = reddit
58 # the default subreddit for submissions
59 default_sr = reddit.com
60 # account used for default feedback messaging (can be /r/subreddit)
61 admin_message_acct = reddit
62 # subreddit used for DMCA takedowns
63 takedown_sr = _takedowns
64 # list of subreddits to auto-subscribe users to
65 automatic_reddits =
66 # special subreddit that only reddit gold subscribers can use
67 lounge_reddit =
68 # list of accounts with admin powers
69 admins = reddit
70 # accounts with special access to the ad system
71 sponsors =
72 # employees that aren't admins or sponsors (Free gilding, admin distinguish, traffic viewing, etc.)
73 employees =
e683889 Jeremy Edberg New Features
jedberg authored
74
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
75 #### Static Files
76 # if set, these are the domains used for static files served over http and https
77 # if not set, no domain will be specified and relative local URLs will be used instead
78 static_domain =
79 static_secure_domain =
80 # if this is true, append .gz to CSS and JS files served from the static domain
81 # this is for hosts that don't do on-the-fly gzipping (e.g. s3)
82 static_pre_gzipped = false
83 static_secure_pre_gzipped = false
84 # whether or not to put subreddit stylesheets in the media system or serve dynamically
85 subreddit_stylesheets_static = false
86
87 #### Ops
88 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network or host
89 # set X-forwarded-for and set this to true
90 trust_local_proxies = false
91 # Location (directory) for temp files for diff3 merging
92 # Empty will use python default for temp files
93 diff3_temp_location =
94
95 #### Analytics
96 # image to render to track pageviews
97 tracker_url = /static/pixel.png
98 # images to render to track sponsored links
99 adtracker_url = /static/pixel.png
100 # image to render to track the ad frame
101 adframetracker_url = /static/pixel.png
102 # redirector to bounce clicks off of on sponsored links for tracking
103 clicktracker_url = /static/pixel.png
104 # url to request to track interaction statistics
105 uitracker_url = /static/pixel.png
106 # domain to send tracking requests (see scripts/tracker.py)
107 fetch_trackers_url = http://reddit.local/fetch-trackers
108 # google analytics key
109 googleanalytics =
110 # secret used for signing information on the above tracking pixels
111 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
112
113 #### Wiki Pages
114 wiki_page_privacy_policy = privacypolicy
115 wiki_page_user_agreement = useragreement
116 wiki_page_registration_info = registration_info
117 wiki_page_gold_bottlecaps = gold_bottlecaps
118
119 #### Feature toggles
120 disable_ads = false
121 disable_captcha = false
122 disable_ratelimit = false
123 disable_require_admin_otp = false
124 disable_wiki = false
125
126
127 ############################################ DEBUG
e683889 Jeremy Edberg New Features
jedberg authored
128 # global debug flag -- displays pylons stacktrace rather than 500 page on error when true
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
129 # NOTE: a pylons stacktrace allows remote code execution. make sure this is false in prod.
130 debug = false
131 # enables/disables whitespace removal in rendered html
8b5cad8 Max Goodman Move toggle for template caching into its own .ini flag.
chromakode authored
132 template_debug = false
133 # enables/disables compiled template caching and template file mtime checking
134 reload_templates = true
e683889 Jeremy Edberg New Features
jedberg authored
135 # use uncompressed static files (out of /static/js and /static/css)
136 # rather than compressed files out of /static (for development if true)
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
137 uncompressedJS = true
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
138 # enable/disable verbose logging of SQL queries
9813d94 Jeremy Edberg Make reddit compatible with Postgres 8.3 and Python 2.6
jedberg authored
139 sqlprinting = false
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
140 # directory to write cProfile stats dumps to (disabled if not set)
141 profile_directory =
142 # template names to record render timings for
143 timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
144
145
146 ############################################ LOGGING
147 # whether to print a "reddit app started" message at start
5ef76b9 Christopher Slowe New features:
KeyserSosa authored
148 log_start = true
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
149 # enable/disable logging of exceptions and events via amqp/rabbitmq
e683889 Jeremy Edberg New Features
jedberg authored
150 amqp_logging = false
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
151 # exception reporter objects to give to ErrorMiddleware (see log.py)
152 error_reporters =
153
154
155 ############################################ MEDIA STORAGE
156 # which backend provider to use for media (thumbnails, subreddit stylesheets,
157 # subreddit images, app icons). options are:
158 # s3 - use amazon s3
159 # filesystem - write to local filesystem
160 # or write your own!
161 media_provider = s3
162
163 # s3 provider
164 # your s3 credentials -- if these are left blank, we'll pass None to
165 # boto which will trigger it to look in various places, including instance
166 # metadata if on ec2, for credentials.
167 S3KEY_ID =
168 S3SECRET_KEY =
169 # May be one bucket, or many buckets seperated by commas
170 s3_media_buckets =
171 # Store direct urls for images, rather than buckets
172 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
173 # true: http://s3.amazonaws.com/mybucket/helloworld.jpg
174 # false: http://mybucket/helloworld.jpg
175 s3_media_direct = true
176
177 # filesystem provider configuration
178 media_fs_root =
179 media_fs_base_url_http =
180 media_fs_base_url_https =
181 media_domain = localhost
182
183
184 ############################################ EMERGENCY MODES
253c473 Jeremy Edberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
185 # emergency measures: makes the site read only
186 read_only_mode = false
4758ac8 Neil Williams Make read-only mode slightly less frustrating.
spladug authored
187 # a modified read only mode used for cache shown during heavy load 503s
188 heavy_load_mode = false
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
189 # override default site language for things like pirate day
190 lang_override =
191 # enable/disable automatic creation of database tables/column families
192 db_create_tables = True
193 # are we allowed to write to databases at all?
194 disallow_db_writes = False
195 # disable custom subreddit stylesheets
196 css_killswitch = False
253c473 Jeremy Edberg * Add services and scripts to public repos for ease of reddit installat...
jedberg authored
197
a86261f Andre d Add a contextual description metatag for scrapers.
andre-d authored
198
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
199 ############################################ SCRAPER
200 # user agent for the scraper
201 useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
202 # Embedly API Key. if no key is provided, the scraper will only fetch thumbnails.
203 embedly_api_key =
7fff900 david king February 2011 Merge
ketralnis authored
204
a6da54d Neil Williams Add missing gold checkout stuff to example.ini.
spladug authored
205
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
206 ############################################ QUOTAS
084f573 Keith Mitchell Add formal ratelimiting headers
kemitche authored
207 # quota for various types of relations creatable in subreddits
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
208 sr_banned_quota = 10000
209 sr_moderator_invite_quota = 10000
210 sr_contributor_quota = 10000
211 sr_wikibanned_quota = 10000
212 sr_wikicontributor_quota = 10000
213 sr_quota_time = 7200
214 sr_invite_limit = 25
215 # delay before allowing a link to be shared
216 new_link_share_delay = 30 seconds
217 # max number of uploaded images per subreddit
218 max_sr_images = 50
3d51107 Brian Simpson Stripe payments for reddit gold.
bsimpson63 authored
219
e301b34 Brian Simpson Coinbase payments for reddit gold.
bsimpson63 authored
220
084f573 Keith Mitchell Add formal ratelimiting headers
kemitche authored
221 ############################################ RATELIMITS
222
223 # If true, send 429 responses on exceeded ratelimits
224 # If false, send headers only, but don't abort
225 # Only applies if tracking is enabled below
226 ENFORCE_RATELIMIT = false
227
228 # If true, store per-user request counts in ratelimits cache
229 RL_SITEWIDE_ENABLED = true
230 # How large of a burst window will users be allowed?
231 RL_RESET_MINUTES = 10
232 # What is the average request rate over the above time period?
233 RL_AVG_REQ_PER_SEC = 0.5
234
235 # Same as above, but configured separately for connections via OAuth
236 RL_OAUTH_SITEWIDE_ENABLED = true
237 RL_OAUTH_RESET_MINUTES = 10
238 RL_OAUTH_AVG_REQ_PER_SEC = 0.5
239
240 # user agent substrings to hard-ratelimit to a number of requests per ten second period
241 # example: agents = googlebot:10, appengine:2
242 agents =
243
244 # karma needed to avoid per-subreddit submission ratelimits
245 MIN_RATE_LIMIT_KARMA = 10
246 MIN_RATE_LIMIT_COMMENT_KARMA = 1
247
248
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
249 ############################################ THRESHOLDS
250 # minimum item score to be considered for quota baskets
251 QUOTA_THRESHOLD = 5
252 # if the user has positive total karma, their per-subreddit karma will default to this, else 0
253 MIN_UP_KARMA = 1
254 # ages in days at which various actions are disallowed to preserve history
255 REPLY_AGE_LIMIT = 180
256 VOTE_AGE_LIMIT = 180
257 REPORT_AGE_LIMIT = 180
258 # minimum age of an account (in days) for the "create a subreddit" button to show
259 min_membership_create_community = 30
260 # maximum age (in days) of items eligible for display on normalized hot pages (frontpage, multis, etc.)
261 HOT_PAGE_AGE = 1000
262 # how long to consider links eligible for the rising page
263 rising_period = 12 hours
264 # default number of comments shown
265 num_comments = 100
266 # max number of comments to show at once
267 max_comments = 500
268 max_comments_gold = 2500
269 # number of subreddits to put in the defaults for unlogged users
270 num_default_reddits = 10
271 # how deep do we go into the top listing when fetching /random
272 num_serendipity = 250
273 # number of subscriptions a user needs to have before the "my subreddits"
274 # dropdown is shown
275 sr_dropdown_threshold = 15
276 # Conflate visits to a comment page that happen within this many
277 # seconds of each other (gold "new comments" feature)
278 comment_visits_period = 600
279 # Number of days to keep recent wiki revisions for
280 wiki_keep_recent_days = 7
281 # Max number of bytes for wiki pages
282 wiki_max_page_length_bytes = 262144
283 # Max wiki page name length
284 wiki_max_page_name_length = 128
285 # Max number of separators in a wiki page name
286 wiki_max_page_separators = 3
a4e0aa0 Brian Simpson RedditGifts gold controller.
bsimpson63 authored
287
d411cd5 Added support for disabling adds via config file
westmaas authored
288
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
289 ############################################ SEARCH
290 # endpoint for link search
291 CLOUDSEARCH_SEARCH_API =
292 # endpoint for link upload
293 CLOUDSEARCH_DOC_API =
294 # endpoint for subreddit search
295 CLOUDSEARCH_SUBREDDIT_SEARCH_API =
296 # endpoint for subreddit upload
297 CLOUDSEARCH_SUBREDDIT_DOC_API =
8e188e2 Andre d wiki: Rename wiki_disabled to disable_wiki.
andre-d authored
298
e683889 Jeremy Edberg New Features
jedberg authored
299
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
300 ############################################ MEMCACHE
301 num_mc_clients = 5
302 # core memcache cluster, Things and various other stuff
303 memcaches = 127.0.0.1:11211
304 # caches used for @memoize decorator magic
305 memoizecaches = 127.0.0.1:11211
306 # hosts to store memcache-based locks on
307 lockcaches = 127.0.0.1:11211
308 # hosts to store rendered template fragments in
309 rendercaches = 127.0.0.1:11211
310 # hosts to store entire rendered pages in
311 pagecaches = 127.0.0.1:11211
312 # hosts that cache permacache cassandra data
313 permacache_memcaches = 127.0.0.1:11211
347fb8b Neil Williams SRMember: Start dual-writing to a dedicated cache pool.
spladug authored
314 # hosts that cache srmember rels (subset of Thing data)
315 srmembercaches = 127.0.0.1:11211
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
316 # a local cache that's not globally consistent and can have stale data (optional)
317 stalecaches =
084f573 Keith Mitchell Add formal ratelimiting headers
kemitche authored
318 # cache for tracking rate limit thresholds
319 ratelimitcaches = 127.0.0.1:11211
e683889 Jeremy Edberg New Features
jedberg authored
320
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
321
322 ############################################ MISCELLANEOUS
e683889 Jeremy Edberg New Features
jedberg authored
323 # default localization for strings (when using python's locale.format)
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
324 # (mostly replaced by babel, this shouldn't be necessary to change)
e683889 Jeremy Edberg New Features
jedberg authored
325 locale = C
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
326 # storage timezone, should probably not be changed from UTC
e683889 Jeremy Edberg New Features
jedberg authored
327 timezone = UTC
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
328 # timezone for display of some data, deprecated
e683889 Jeremy Edberg New Features
jedberg authored
329 display_timezone = MST
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
330 # location of the static directory
331 static_path = /static/
332 # Just a list of words. Used by errorlog.py to make up names for new errors.
333 words_file = /usr/dict/words
334 # domains that we consider URLs case sensitive for repost detection purposes
335 case_sensitive_domains = i.imgur.com, youtube.com
336
337
338 ############################################ AUTHENTICATION
339 # how to authenticate users. see r2/lib/authentication.py for options
340 authentication_provider = cookie
341 # the work factor for bcrypt, increment this every time computers double in
342 # speed. don't worry, changing this won't break old passwords
343 bcrypt_work_factor = 12
e683889 Jeremy Edberg New Features
jedberg authored
344 # name of the cookie to drop with login information
345 login_cookie = reddit_session
33b15bc Neil Williams Split the admin cookie out from the session cookie.
spladug authored
346 # name of the admin cookie
347 admin_cookie = reddit_admin
8dfd73b Neil Williams Add framework for RFC-6238: Time-Based One Time Password Algorithm.
spladug authored
348 # name of the otp cookie
349 otp_cookie = reddit_otp
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
350 # the maximum life of an admin cookie (seconds)
351 ADMIN_COOKIE_TTL = 32400
352 # the maximum amount of idle time for an admin cookie (seconds)
353 ADMIN_COOKIE_MAX_IDLE = 900
354 # the maximum life of an otp cookie
355 OTP_COOKIE_TTL = 604800
e683889 Jeremy Edberg New Features
jedberg authored
356
357
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
358 ############################################ CASSANDRA
359 # cassandra hosts
9a4271f Christopher Slowe Upgrade Instructions
KeyserSosa authored
360 cassandra_seeds = 127.0.0.1:9160
fcd3f3b Neil Williams Make cassandra connection pool size configurable.
spladug authored
361 # number of connections to keep open to the cassandra ring
362 cassandra_pool_size = 5
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
363 # default read/write consistency levels for Cassandra
0ae8f2f david king 21 Jul 2010 merge
ketralnis authored
364 cassandra_rcl = ONE
7fff900 david king February 2011 Merge
ketralnis authored
365 cassandra_wcl = ONE
532be3f Neil Williams Allow Cassandra models to choose a connection pool.
spladug authored
366 # name of default connection pool to use when _connection_pool not specified
367 cassandra_default_pool = main
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
368
e683889 Jeremy Edberg New Features
jedberg authored
369
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
370 ############################################ AMQP
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
371 amqp_host = localhost:5672
e683889 Jeremy Edberg New Features
jedberg authored
372 amqp_user = reddit
373 amqp_pass = reddit
bf9f43c Christopher Slowe Messaging/commenting
KeyserSosa authored
374 amqp_virtual_host = /
375
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
376
377 ############################################ ZOOKEEPER
378 # zookeeper is optional at the moment
0b09f25 Neil Williams Add basic support for ZooKeeper via Kazoo.
spladug authored
379 zookeeper_connection_string =
380 zookeeper_username =
381 zookeeper_password =
382
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
383
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
384 ############################################ EMAIL
385 smtp_server = localhost
386 # where to send alerts for exceptions, etc.
387 nerds_email = nerds@reddit.com
388 # the "from" address for link share emails
389 share_reply = noreply@reddit.com
390 # where to send feedback comments
391 feedback_email = reddit@gmail.com
392
393
394 ############################################ POSTGRES
7fff900 david king February 2011 Merge
ketralnis authored
395 db_user = reddit
396 db_pass = password
397 db_port = 5432
398 db_pool_size = 3
399 db_pool_overflow_size = 3
400
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
401 # list of all databases named in the subsequent table
402 databases = main, comment, vote, email, authorize, award, hc, traffic
403
7fff900 david king February 2011 Merge
ketralnis authored
404 #db name db host user, pass, port, conn, overflow_conn
405 main_db = reddit, 127.0.0.1, *, *, *, *, *
406 comment_db = reddit, 127.0.0.1, *, *, *, *, *
407 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
408 vote_db = reddit, 127.0.0.1, *, *, *, *, *
409 email_db = reddit, 127.0.0.1, *, *, *, *, *
410 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
411 award_db = reddit, 127.0.0.1, *, *, *, *, *
412 hc_db = reddit, 127.0.0.1, *, *, *, *, *
9cd5fed Neil Williams Add traffic to example.ini.
spladug authored
413 traffic_db = reddit, 127.0.0.1, *, *, *, *, *
e683889 Jeremy Edberg New Features
jedberg authored
414
7fff900 david king February 2011 Merge
ketralnis authored
415 hardcache_categories = *:hc:hc
37e2ba9 david king * Combine cassandra clusters into a single one
ketralnis authored
416
e683889 Jeremy Edberg New Features
jedberg authored
417 # this setting will prefix all of the table names
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
418 db_app_name = reddit
419
420 type_db = main
421 rel_type_db = main
5ef76b9 Christopher Slowe New features:
KeyserSosa authored
422 hardcache_db = main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
423
9f0ec95 Neil Williams Split table definitions from db configuration.
spladug authored
424 # definitions of what each table is (probably shouldn't change in .update files)
425 # things require no extra info. relation is followed by the names of the related tables
426 db_table_link = thing
427 db_table_account = thing
428 db_table_message = thing
429 db_table_comment = thing
430 db_table_subreddit = thing
431 db_table_srmember = relation, subreddit, account
432 db_table_friend = relation, account, account
433 db_table_vote_account_link = relation, account, link
434 db_table_vote_account_comment = relation, account, comment
435 db_table_inbox_account_comment = relation, account, comment
436 db_table_inbox_account_message = relation, account, message
437 db_table_moderatorinbox = relation, subreddit, message
438 db_table_report_account_link = relation, account, link
439 db_table_report_account_comment = relation, account, comment
440 db_table_report_account_message = relation, account, message
441 db_table_report_account_subreddit = relation, account, subreddit
442 db_table_award = thing
443 db_table_trophy = relation, account, award
444 db_table_jury_account_link = relation, account, link
445 db_table_ad = thing
446 db_table_adsr = relation, ad, subreddit
447 db_table_flair = relation, subreddit, account
09dbd49 shlurbee Update config with new promocampaign thing table
shlurbee authored
448 db_table_promocampaign = thing
9f0ec95 Neil Williams Split table definitions from db configuration.
spladug authored
449
450 # which servers to find each table on (likely to change in .update files)
451 # first server listed is assumed to be the master, all others are read-only slaves
452 # additionally, a "!avoid_master" flag may be added to specify that reads should use the slaves
453 db_servers_link = main, main
454 db_servers_account = main
455 db_servers_message = main
456 db_servers_comment = comment
457 db_servers_subreddit = comment
458 db_servers_srmember = comment
459 db_servers_friend = comment
460 db_servers_vote_account_link = vote
461 db_servers_vote_account_comment = vote
462 db_servers_inbox_account_comment = main
463 db_servers_inbox_account_message = main
464 db_servers_moderatorinbox = main
465 db_servers_report_account_link = main
466 db_servers_report_account_comment = comment
467 db_servers_report_account_message = main
468 db_servers_report_account_subreddit = main
469 db_servers_award = award
470 db_servers_trophy = award
471 db_servers_jury_account_link = main
472 db_servers_ad = main
473 db_servers_adsr = main
474 db_servers_flair = main
09dbd49 shlurbee Update config with new promocampaign thing table
shlurbee authored
475 db_servers_promocampaign = main
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
476
e683889 Jeremy Edberg New Features
jedberg authored
477
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
478 ############################################ GOLD
479 gold_month_price = 3.99
480 gold_year_price = 29.99
481 PAYPAL_SECRET =
482 PAYPAL_BUTTONID_ONETIME_BYMONTH =
483 PAYPAL_BUTTONID_ONETIME_BYYEAR =
484 PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
485 PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
486 PAYPAL_BUTTONID_CREDDITS_BYMONTH =
487 PAYPAL_BUTTONID_CREDDITS_BYYEAR =
488 STRIPE_PUBLIC_KEY =
489 STRIPE_SECRET_KEY =
490 STRIPE_MONTHLY_GOLD_PLAN =
491 STRIPE_YEARLY_GOLD_PLAN =
492 COINBASE_WEBHOOK_SECRET =
493 COINBASE_BUTTONID_ONETIME_1MO =
494 COINBASE_BUTTONID_ONETIME_2MO =
495 COINBASE_BUTTONID_ONETIME_3MO =
496 COINBASE_BUTTONID_ONETIME_4MO =
497 COINBASE_BUTTONID_ONETIME_5MO =
498 COINBASE_BUTTONID_ONETIME_6MO =
499 COINBASE_BUTTONID_ONETIME_7MO =
500 COINBASE_BUTTONID_ONETIME_8MO =
501 COINBASE_BUTTONID_ONETIME_9MO =
502 COINBASE_BUTTONID_ONETIME_10MO =
503 COINBASE_BUTTONID_ONETIME_11MO =
504 COINBASE_BUTTONID_ONETIME_1YR =
505 COINBASE_BUTTONID_ONETIME_2YR =
506 COINBASE_BUTTONID_ONETIME_3YR =
507 RG_SECRET =
508 STRIPE_WEBHOOK_SECRET =
e683889 Jeremy Edberg New Features
jedberg authored
509
510
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
511 ############################################ SELF-SERVE ADS
512 selfserve_support_email = selfservesupport@mydomain.com
37a4766 Keith Mitchell Limit the number of campaigns per promoted link
kemitche authored
513 MAX_CAMPAIGNS_PER_LINK = 100
a0c4a90 Brian Simpson Sell campaigns by CPM.
bsimpson63 authored
514 cpm_selfserve = 1.00
93f29d9 Brian Simpson Add geotargeting for selfserve advertising.
bsimpson63 authored
515 cpm_selfserve_geotarget = 0.25
7fff900 david king February 2011 Merge
ketralnis authored
516 # authorize.net credentials (blank authorizenetapi to disable)
517 authorizenetapi =
518 # authorizenetapi = https://api.authorize.net/xml/v1/request.api
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
519 authorizenetname =
520 authorizenetkey =
e683889 Jeremy Edberg New Features
jedberg authored
521 min_promote_bid = 20
522 max_promote_bid = 9999
523 min_promote_future = 2
b884ef2 Brian Simpson Future date limit on creating campaigns.
bsimpson63 authored
524 max_promote_future = 93
e683889 Jeremy Edberg New Features
jedberg authored
525
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
526
527 ############################################ TRAFFIC
a70a6ea Brian Simpson Process traffic logs on Amazon EMR.
bsimpson63 authored
528 TRAFFIC_ACCESS_KEY =
529 TRAFFIC_SECRET_KEY =
530 RAW_LOG_DIR =
531 PROCESSED_DIR =
532 AGGREGATE_DIR =
533 AWS_LOG_DIR =
534 TRAFFIC_SRC_DIR =
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
535 TRAFFIC_LOG_HOSTS =
a70a6ea Brian Simpson Process traffic logs on Amazon EMR.
bsimpson63 authored
536
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
537
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
538 ############################################ PERFORMANCE / SCALING
e412fdc Neil Williams Shard vote_link_qs by last digit of subreddit ID.
spladug authored
539 # should we split link votes into separate queues based on subreddit id?
540 # this helps with lock contention but isn't necessary on smaller sites
541 shard_link_vote_queues = false
713a8ee Neil Williams Shard commentstree_q processing by Link ID.
spladug authored
542 # should we split comment tree processing into shards based on the link id?
543 # this helps with lock contention but isn't necessary on smaller sites
544 shard_commentstree_queues = false
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
545 # chance of a write to the query cache triggering pruning. increasing this will
546 # potentially slow down writes, but will keep the size of cached queries in check better
fbe867e Neil Williams Implement new lockless query cache.
spladug authored
547 querycache_prune_chance = 0.05
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
548 # time for the page cache (for unlogged in users)
549 page_cache_time = 90
550 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
551 commentpane_cache_time = 120
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
552
052c661 Ricky Ramirez Add employees to example.ini
rram authored
553
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
554 [server:main]
555 use = egg:Paste#http
556 host = 0.0.0.0
e683889 Jeremy Edberg New Features
jedberg authored
557 port = %(http_port)s
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
558
559 [app:main]
560 use = egg:r2
7693869 Neil Williams example.ini: Reorganize and document configuration options.
spladug authored
561 # %(here)s is the directory containing the configuration file
4778b17 Christopher Slowe initial checkin
KeyserSosa authored
562 cache_dir = %(here)s/data
3574a64 Neil Williams Add an optional paste-filter compatible Gzipping middleware.
spladug authored
563 filter-with = gzip
564
565 [filter:gzip]
566 use = egg:r2#gzip
567 compress_level = 6
568 min_size = 800
569
775c795 Neil Williams Use WebError Reporter objects for exception logging.
spladug authored
570 [loggers]
ed18fc5 Brian Simpson Delete g.countries.
bsimpson63 authored
571 keys = root
775c795 Neil Williams Use WebError Reporter objects for exception logging.
spladug authored
572
573 [logger_root]
574 level = WARNING
575 handlers = console
576
577 [handlers]
578 keys = console
579
580 [handler_console]
581 class = StreamHandler
582 args = (sys.stdout,)
583
584 [formatters]
585 keys = reddit
586
587 [formatter_reddit]
588 format = %(message)s
589
f495dad Neil Williams Add ZooKeeper-based dynamic configuration system.
spladug authored
590 # the following configuration section makes up the "live" config. if zookeeper
591 # is enabled, then this configuration will be found by the app in zookeeper. to
592 # write it to zookeeper, use the writer script: scripts/write_live_config.
593 [live_config]
c337280 Neil Williams fastlane: Separate votes on some links and their comments.
spladug authored
594 # links that get their own infrastructure (comma-delimited list of id36s)
595 fastlane_links =
98d0ca5 Max Goodman Move announcement_message to ZooKeeper.
chromakode authored
596 # a message placed in the infobar
597 announcement_message =
79ccaca Max Goodman Add support for a live-config sidebar info message.
chromakode authored
598 # an info message placed in the sidebar
599 sidebar_message =
ae2b646 Max Goodman Add gold-specific sidebar message.
chromakode authored
600 # an info message placed in the sidebar for gold users
601 gold_sidebar_message =
1b6423a Neil Williams example.ini: Document subreddit suggester live config options.
spladug authored
602 # probability of the subreddit suggester showing up in the spotlight box
603 # for users that have at some point edited their subscriptions:
613b27d Max Goodman Add subreddit interest discovery bar.
chromakode authored
604 spotlight_interest_sub_p = .05
1b6423a Neil Williams example.ini: Document subreddit suggester live config options.
spladug authored
605 # and for users that have not ever subscribed:
613b27d Max Goodman Add subreddit interest discovery bar.
chromakode authored
606 spotlight_interest_nosub_p = .1
2868e65 Randomly assign comment tree implementation to new links.
Logan Hanks authored
607 # map of comment tree version to how frequently it should be chosen relative to
608 # the others
43e2900 Update example.ini to enable only comment tree v1.
Logan Hanks authored
609 comment_tree_version_weights = 1:1, 2:0
22a5328 Max Goodman Web frontend logging.
chromakode authored
610 # enables/disables client side logging POSTs to /web/log/...
611 frontend_logging = true
134b09a Neil Williams Replace goldvertisement with daily progress bar.
spladug authored
612 # daily gold revenue goal (in pennies) for progress bar thing
613 gold_revenue_goal = 0
3d0e197 Max Goodman Move sample multis list to live config.
chromakode authored
614 # sample multireddits (displayed when a user has no multis)
615 listing_chooser_sample_multis = /user/reddit/m/hello, /user/reddit/m/world
a71bc66 Max Goodman Add gold perks listing chooser tab.
chromakode authored
616 # multi of subreddits to share with gold users
617 listing_chooser_gold_multi = /user/reddit/m/gold
2566f25 Max Goodman Add tab to listing chooser for multi explore subreddit.
chromakode authored
618 # subreddit showcasing new multireddits
87aa75d shlurbee Show recommended content in /explore
shlurbee authored
619 listing_chooser_explore_sr =
620 # subreddits that help people discover more subreddits (used in explore tab)
621 discovery_srs =
5202a82 Brian Simpson Show how many server seconds the user has paid for.
bsimpson63 authored
622 # historical cost to run a reddit server
623 pennies_per_server_second = 1970/1/1:1
Something went wrong with that request. Please try again.