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