Accept '/r/foo' everywhere: part 2
[reddit.git] / r2 / example.ini
blob7408d6b86e23cd60834520dcddf3cb2e61191016
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')
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
18 # used to securely authenticate websocket requests to sutro
19 websocket = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
20 # secret for validating the cdn-provided client ip
21 cdn_ip_verification =
22 # secret for authenticating private media embeds
23 media_embed = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
24 # secret for authenticating controller#action name
25 action_name = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
26 # secret for email notification one-click unsubscribe links
27 email_notifications = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
28 # secrets for communicating with Stripe (optional payment processor)
29 stripe_webhook =
30 stripe_public_key =
31 stripe_secret_key =
32 # secrets for communicating with Authorize.net (optional payment processor--
33 # must also set authorizenetapi to enable)
34 authorizenetname =
35 authorizenetkey =
36 # secret for communicating with Paypal (optional payment processor)
37 paypal_webhook =
38 # secret for communicating with Coinbase (optional payment processor)
39 coinbase_webhook =
40 # secret for communicating with RedditGifts (optional payment processor)
41 redditgifts_webhook =
43 [DEFAULT]
44 ############################################ SITE-SPECIFIC OPTIONS
45 #### Appearance
46 # the site's tagline, used in the title and description
47 short_description = open source is awesome
48 # default site interface language (two letter character code)
49 site_lang = en
50 # default header image url
51 default_header_url = reddit.com.header.png
53 #### Domains
54 # the domain that this app expects to be accessed on
55 domain = reddit.local
56 # where third party media (embeds etc.) are hosted
57 # this should be different from `domain` for security
58 media_domain = %(domain)s
59 # the short domain (like redd.it)
60 shortdomain =
61 # if you use www for the old-timey feel, put it here
62 domain_prefix =
63 # subdomains that don't need special processing
64 reserved_subdomains = www, ssl, oauth
65 # subdomains that don't need special processing, and can't be part of `c.domain_prefix`.
66 # should be a subset of `reserved_subdomains`
67 ignored_subdomains = www, ssl, oauth
68 # subdomains that are not reddit instances
69 offsite_subdomains =
70 # https api endpoint (must be g.domain or a subdomain of g.domain)
71 https_endpoint =
72 # the domain for oauth-orized requests
73 oauth_domain =
74 # (secure) payment domain for self-serve ads
75 payment_domain = https://pay.reddit.local/
76 # base url where 300x250 ad units (sidebar) are hosted
77 ad_domain = http://reddit.local
78 # domain where sutro websocket server is hosted
79 websocket_host = %(domain)s
80 # domain to send stats to
81 stats_domain =
83 #### Accounts and Subreddits
84 # the user used for "system" operations and private messages
85 system_user = reddit
86 # the default subreddit for submissions
87 default_sr = frontpage
88 # account used for default feedback messaging (can be /r/subreddit)
89 admin_message_acct = reddit
90 # subreddit used for DMCA takedowns
91 takedown_sr = takedowns
92 # subreddit used for trending subreddits postings. Ignored if blank.
93 trending_sr =
94 # list of subreddits to always include in a user's front page (unless they unsubscribe)
95 automatic_reddits =
96 # special subreddit that only reddit gold subscribers can use
97 lounge_reddit =
98 # subreddits that have subscribers hidden
99 hide_subscribers_srs =
101 multi_icons = art and design, ask, books, business, cars, comics, cute animals, diy, entertainment, food and drink, funny, games, grooming, health, life advice, military, models pinup, music, news, philosophy, pictures and gifs, science, shopping, sports, style, tech, travel, unusual stories, video
103 #### Static Files
104 # if set, this is the domain used for static files served over http and https
105 # if not set, no domain will be specified and relative local URLs will be used instead
106 static_domain =
108 #### Ops
109 # if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
110 # set X-forwarded-for and set this to true
111 trust_local_proxies = false
112 # Location (directory) for temp files for diff3 merging
113 # Empty will use python default for temp files
114 diff3_temp_location =
115 # which cdn provider to use; right now this is just used for getting an
116 # accurate client IP. options are:
117 # null - no cdn
118 # cloudflare - use cloudflare as configured for reddit.com
119 # or write your own!
120 cdn_provider = null
122 #### Analytics
123 # image to render to track pageviews
124 tracker_url = /pixel/of_destiny.png
125 # images to render to track sponsored links
126 adtracker_url = /pixel/of_doom.png
127 # image to render to track the ad frame
128 adframetracker_url = /pixel/of_defenestration.png
129 # redirector to bounce clicks off of on sponsored links for tracking
130 clicktracker_url = /click
131 event_clicktracker_url = /event_click
132 # url to request to track interaction statistics
133 uitracker_url = /pixel/of_discovery.png
134 # embeds pixel tracking url
135 eventtracker_url = /pixel/of_delight.png
136 anon_eventtracker_url = /pixel/of_diversity.png
137 # google analytics token
138 googleanalytics =
139 # google analytics events sampling rate. Valid values are 1-100.
140 # See https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._setSampleRate
141 googleanalytics_sample_rate = 50
142 # google analytics token for gold
143 googleanalytics_gold =
144 # google analytics events sampling rate for gold. Valid values are 1-100.
145 googleanalytics_sample_rate_gold = 100
146 # secret used for signing information on the above tracking pixels
147 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
149 #### Wiki Pages
150 wiki_page_privacy_policy = privacypolicy
151 wiki_page_user_agreement = useragreement
152 wiki_page_registration_info = registration_info
153 wiki_page_gold_bottlecaps = gold_bottlecaps
155 #### Feature toggles
156 disable_ads = false
157 disable_captcha = false
158 disable_ratelimit = false
159 disable_require_admin_otp = false
160 disable_wiki = false
163 ############################################ DEBUG
164 # global debug flag -- displays pylons stacktrace rather than 500 page on error when true
165 # NOTE: a pylons stacktrace allows remote code execution. make sure this is false in prod.
166 debug = false
167 # enables/disables whitespace removal in rendered html
168 template_debug = false
169 # enables/disables compiled template caching and template file mtime checking
170 reload_templates = true
171 # use uncompressed static files (out of /static/js and /static/css)
172 # rather than compressed files out of /static (for development if true)
173 uncompressedJS = true
174 # enable/disable verbose logging of SQL queries
175 sqlprinting = false
176 # directory to write cProfile stats dumps to (disabled if not set)
177 profile_directory =
178 # template names to record render timings for
179 timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
182 ############################################ PLUGINS
183 # which plugins are enabled (they must be installed via setup.py first)
184 plugins =
186 ###### about
187 # set which subreddits the about page pulls its source data from
188 # make sure you create the subreddits as well, otherwise you'll get an error
189 about_sr_quotes = about_quotes
190 about_sr_images = about_images
191 # size limit on the about page slideshow
192 about_images_count = 50
193 about_images_min_score = 1
195 advertising_links_sr = advertising_links
196 wiki_page_selfserve_advertisers = advertising/advertisers
197 wiki_page_selfserve_content = advertising/content
198 wiki_page_selfserve_blurbs = advertising/blurbs
199 wiki_page_selfserve_quotes = advertising/quotes
200 wiki_page_selfserve_help = advertising/help
202 ###### liveupdate
203 # the domain the activity pixel is hosted on
204 liveupdate_pixel_domain = %(domain)s
205 # maximum number of outstanding invites an event can have
206 liveupdate_invite_quota = 5
208 ###### meatspace
209 # nothing!
212 ############################################ LOGGING
213 # whether to print a "reddit app started" message at start
214 log_start = true
215 # enable/disable logging of exceptions and events via amqp/rabbitmq
216 amqp_logging = false
217 # exception reporter objects to give to ErrorMiddleware (see log.py)
218 error_reporters =
221 ############################################ METRICS
222 # where to send metrics
223 statsd_addr =
224 # how often to send them [0.0 - 1.0]
225 statsd_sample_rate = 1.0
226 # percentage of stats for sampling (0-100)
227 stats_sample_rate = 1
230 ############################################ MEDIA STORAGE
231 # which backend provider to use for media (thumbnails, subreddit stylesheets,
232 # subreddit images, app icons). options are:
233 # s3 - use amazon s3
234 # filesystem - write to local filesystem
235 # or write your own!
236 media_provider = s3
238 # s3 provider
239 # your s3 credentials -- if these are left blank, we'll pass None to
240 # boto which will trigger it to look in various places, including instance
241 # metadata if on ec2, for credentials.
242 S3KEY_ID =
243 S3SECRET_KEY =
244 # May be one bucket, or many buckets seperated by commas
245 s3_media_buckets =
246 # Store direct urls for images, rather than buckets
247 # For the bucket mybucket with the image helloworld.jpg the stored url would be:
248 # true: http://{s3_media_domain}/mybucket/helloworld.jpg
249 # false: http://mybucket/helloworld.jpg
250 s3_media_direct = true
251 # Which S3 region to use
252 # If using the US region, the default is correct. Otherwise, use a region-specific
253 # endpoint as in http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
254 s3_media_domain = s3.amazonaws.com
256 # filesystem provider configuration
257 media_fs_root =
258 media_fs_base_url_http =
260 thumbnail_size = 70, 70
261 thumbnail_hidpi_scaling = 2
264 ############################################ EMERGENCY MODES
265 # emergency measures: makes the site read only
266 read_only_mode = false
267 # a modified read only mode used for cache shown during heavy load 503s
268 heavy_load_mode = false
269 # override default site language for things like pirate day
270 lang_override =
271 # enable/disable automatic creation of database tables/column families
272 db_create_tables = True
273 # are we allowed to write to databases at all?
274 disallow_db_writes = False
275 # disable custom subreddit stylesheets
276 css_killswitch = False
279 ############################################ SCRAPER
280 # user agent for the scraper
281 useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
282 # Embedly API Key. if no key is provided, the scraper will only fetch thumbnails.
283 embedly_api_key =
284 # A tuple of what media_object types will automatically be displayed on comments view.
285 # Ex: liveupdate, custom
286 autoexpand_media_types = liveupdate
289 ############################################ QUOTAS
290 # quota for various types of relations creatable in subreddits
291 sr_banned_quota = 10000
292 sr_moderator_invite_quota = 10000
293 sr_contributor_quota = 10000
294 sr_wikibanned_quota = 10000
295 sr_wikicontributor_quota = 10000
296 sr_quota_time = 7200
297 sr_invite_limit = 25
298 # delay before allowing a link to be shared
299 new_link_share_delay = 30 seconds
300 # max number of uploaded images per subreddit
301 max_sr_images = 50
304 ############################################ RATELIMITS
305 # If true, send 429 responses on exceeded ratelimits
306 # If false, send headers only, but don't abort
307 # Only applies if tracking is enabled below
308 ENFORCE_RATELIMIT = false
310 # If true, store per-user request counts in ratelimits cache
311 RL_SITEWIDE_ENABLED = true
312 # How large of a burst window will users be allowed?
313 RL_RESET_MINUTES = 10
314 # What is the average request rate over the above time period?
315 RL_AVG_REQ_PER_SEC = 0.5
317 # Same as above, but configured separately for connections via OAuth
318 RL_OAUTH_SITEWIDE_ENABLED = true
319 RL_OAUTH_RESET_MINUTES = 10
320 RL_OAUTH_AVG_REQ_PER_SEC = 0.5
322 # same as above, but for failed login attempts per account
323 RL_LOGIN_AVG_PER_SEC = .1
325 # user agent substrings to hard-ratelimit to a number of requests per ten second period
326 # example: agents = googlebot:10, appengine:2
327 agents =
329 # karma needed to avoid per-subreddit submission ratelimits
330 MIN_RATE_LIMIT_KARMA = 10
331 MIN_RATE_LIMIT_COMMENT_KARMA = 1
334 ############################################ THRESHOLDS
335 # minimum item score to be considered for quota baskets
336 QUOTA_THRESHOLD = 5
337 # if the user has positive total karma, their per-subreddit karma will default to this, else 0
338 MIN_UP_KARMA = 1
340 # minimum user karma total values to show to non-admins
341 link_karma_display_floor = 1
342 comment_karma_display_floor = -100
344 # age at which links/comments become "archived" and can no longer be voted on, replied to, or reported
345 ARCHIVE_AGE = 180 days
347 # the maximum amount of time we use memcache to hide that a vote hasn't been
348 # asynchronously processed yet.
349 vote_queue_grace_period = 1 hour
351 # minimum age of an account (in days) for the "create a subreddit" button to show
352 min_membership_create_community = 30
353 # maximum age (in days) of items eligible for display on normalized hot pages (frontpage, multis, etc.)
354 HOT_PAGE_AGE = 1000
355 # how long to consider links eligible for the rising page
356 rising_period = 12 hours
357 # default number of comments shown
358 num_comments = 100
359 # max number of comments to show at once
360 max_comments = 500
361 max_comments_gold = 2500
362 # max number of parents to walk up the tree while uncollapsing replies in Q&A
363 # sort mode
364 max_comment_parent_walk = 20
365 # how deep do we go into the top listing when fetching /random
366 num_serendipity = 250
367 # number of subscriptions a user needs to have before the "my subreddits"
368 # dropdown is shown
369 sr_dropdown_threshold = 15
370 # Conflate visits to a comment page that happen within this many
371 # seconds of each other (gold "new comments" feature)
372 comment_visits_period = 600
373 # Max number of mentions to extract per comment
374 butler_max_mentions = 3
375 # Number of days to keep recent wiki revisions for
376 wiki_keep_recent_days = 7
377 # Max number of bytes for wiki pages
378 wiki_max_page_length_bytes = 262144
379 # Max wiki page name length
380 wiki_max_page_name_length = 128
381 # Max number of separators in a wiki page name
382 wiki_max_page_separators = 3
385 ############################################ SEARCH
386 # endpoint for link search
387 CLOUDSEARCH_SEARCH_API =
388 # endpoint for link upload
389 CLOUDSEARCH_DOC_API =
390 # endpoint for subreddit search
391 CLOUDSEARCH_SUBREDDIT_SEARCH_API =
392 # endpoint for subreddit upload
393 CLOUDSEARCH_SUBREDDIT_DOC_API =
396 ############################################ MEMCACHE
397 num_mc_clients = 5
398 # core memcache cluster, Things and various other stuff
399 memcaches = 127.0.0.1:11211
400 # caches used for @memoize decorator magic
401 memoizecaches = 127.0.0.1:11211
402 # hosts to store memcache-based locks on
403 lockcaches = 127.0.0.1:11211
404 # hosts to store rendered template fragments in
405 rendercaches = 127.0.0.1:11211
406 # hosts to store entire rendered pages in
407 pagecaches = 127.0.0.1:11211
408 # hosts that cache permacache cassandra data
409 permacache_memcaches = 127.0.0.1:11211
410 # hosts that cache srmember rels (subset of Thing data)
411 srmembercaches = 127.0.0.1:11211
412 # hosts that cache relations between Things
413 relcaches = 127.0.0.1:11211
414 # a local cache that's not globally consistent and can have stale data (optional)
415 stalecaches =
416 # cache for tracking rate limit thresholds
417 ratelimitcaches = 127.0.0.1:11211
420 ############################################ MISCELLANEOUS
421 # default localization for strings (when using python's locale.format)
422 # (mostly replaced by babel, this shouldn't be necessary to change)
423 locale = C
424 # storage timezone, should probably not be changed from UTC
425 timezone = UTC
426 # timezone for display of some data, deprecated
427 display_timezone = MST
428 # location of the static directory
429 static_path = /static/
430 # Just a list of words. Used by errorlog.py to make up names for new errors.
431 words_file = /usr/dict/words
432 # domains that we consider URLs case sensitive for repost detection purposes
433 case_sensitive_domains = i.imgur.com, youtube.com
434 # Domains that we know are friendly and host raw image files
435 known_image_domains = i.imgur.com, giant.gfycat.com, pbs.twimg.com, upload.wikimedia.org
436 # whether to load reddit private code (a hack until we structure it better)
437 import_private = false
438 # location of geoip service
439 geoip_location = http://127.0.0.1:5000
440 # account name that AutoModerator actions will be done by
441 automoderator_account =
444 ############################################ AUTHENTICATION
445 # how to authenticate users. options are:
446 # cookie: standard cookie-based auth
447 # http: http basic authentication
448 # or write your own!
449 authentication_provider = cookie
450 # the work factor for bcrypt, increment this every time computers double in
451 # speed. don't worry, changing this won't break old passwords
452 bcrypt_work_factor = 12
453 # name of the cookie to drop with login information
454 login_cookie = reddit_session
455 # name of the admin cookie
456 admin_cookie = reddit_admin
457 # name of the otp cookie
458 otp_cookie = reddit_otp
459 # the maximum life of an admin cookie (seconds)
460 ADMIN_COOKIE_TTL = 32400
461 # the maximum amount of idle time for an admin cookie (seconds)
462 ADMIN_COOKIE_MAX_IDLE = 900
463 # the maximum life of an otp cookie
464 OTP_COOKIE_TTL = 604800
465 # funky app user agents exempt from the login CSRF prevention
466 exempt_login_user_agents =
467 # for the http provider:
468 # should we trust the authorization header and auto-register accounts?
469 auth_trust_http_authorization = false
472 ############################################ SSL
473 # max-age for Strict Transport Security, setting this to 0 disables
474 # HSTS and revokes any previous HSTS grants.
475 hsts_max_age = 10886400
478 ############################################ CASSANDRA
479 # cassandra hosts
480 cassandra_seeds = 127.0.0.1:9160
481 # number of connections to keep open to the cassandra ring
482 cassandra_pool_size = 5
483 # default read/write consistency levels for Cassandra
484 cassandra_rcl = ONE
485 cassandra_wcl = ONE
486 # name of default connection pool to use when _connection_pool not specified
487 cassandra_default_pool = main
490 ############################################ AMQP
491 amqp_host = localhost:5672
492 amqp_user = reddit
493 amqp_pass = reddit
494 amqp_virtual_host = /
497 ############################################ ZOOKEEPER
498 # zookeeper is optional at the moment
499 zookeeper_connection_string =
500 zookeeper_username =
501 zookeeper_password =
504 ############################################ EMAIL
505 smtp_server = localhost
506 # where to send alerts for exceptions, etc.
507 nerds_email = nerds@reddit.com
508 # the "from" address for link share emails
509 share_reply = noreply@reddit.com
510 # where to send feedback comments
511 feedback_email = reddit@gmail.com
512 # the "from" address for orangered notifications
513 notification_email = notifications@example.com
514 # email to ads team
515 ads_email = ad-ops@reddit.com
517 ############################################ POSTGRES
518 db_user = reddit
519 db_pass = password
520 db_port = 5432
521 db_pool_size = 3
522 db_pool_overflow_size = 3
524 # list of all databases named in the subsequent table
525 databases = main, comment, email, authorize, award, hc, traffic
527 #db name db host user, pass, port, conn, overflow_conn
528 main_db = reddit, 127.0.0.1, *, *, *, *, *
529 comment_db = reddit, 127.0.0.1, *, *, *, *, *
530 comment2_db = reddit, 127.0.0.1, *, *, *, *, *
531 email_db = reddit, 127.0.0.1, *, *, *, *, *
532 authorize_db = reddit, 127.0.0.1, *, *, *, *, *
533 award_db = reddit, 127.0.0.1, *, *, *, *, *
534 hc_db = reddit, 127.0.0.1, *, *, *, *, *
535 traffic_db = reddit, 127.0.0.1, *, *, *, *, *
537 hardcache_categories = *:hc:hc
539 # this setting will prefix all of the table names
540 db_app_name = reddit
542 type_db = main
543 rel_type_db = main
544 hardcache_db = main
546 # definitions of what each table is (probably shouldn't change in .update files)
547 # things require no extra info. relation is followed by the names of the related tables
548 # a !typeid=# flag allows overriding of the type id for a thing/rel to avoid the db
549 # hit on app startup.
550 db_table_link = thing
551 db_table_account = thing
552 db_table_message = thing
553 db_table_comment = thing
554 db_table_subreddit = thing
555 db_table_srmember = relation, subreddit, account
556 db_table_friend = relation, account, account
557 db_table_inbox_account_comment = relation, account, comment
558 db_table_inbox_account_message = relation, account, message
559 db_table_moderatorinbox = relation, subreddit, message
560 db_table_report_account_link = relation, account, link
561 db_table_report_account_comment = relation, account, comment
562 db_table_report_account_message = relation, account, message
563 db_table_report_account_subreddit = relation, account, subreddit
564 db_table_award = thing
565 db_table_trophy = relation, account, award
566 db_table_jury_account_link = relation, account, link
567 db_table_flair = relation, subreddit, account
568 db_table_promocampaign = thing
570 # which servers to find each table on (likely to change in .update files)
571 # first server listed is assumed to be the master, all others are read-only slaves
572 # additionally, a "!avoid_master" flag may be added to specify that reads should use the slaves
573 db_servers_link = main, main
574 db_servers_account = main
575 db_servers_message = main
576 db_servers_comment = comment
577 db_servers_subreddit = comment
578 db_servers_srmember = comment
579 db_servers_friend = comment
580 db_servers_inbox_account_comment = main
581 db_servers_inbox_account_message = main
582 db_servers_moderatorinbox = main
583 db_servers_report_account_link = main
584 db_servers_report_account_comment = comment
585 db_servers_report_account_message = main
586 db_servers_report_account_subreddit = main
587 db_servers_award = award
588 db_servers_trophy = award
589 db_servers_jury_account_link = main
590 db_servers_ad = main
591 db_servers_adsr = main
592 db_servers_flair = main
593 db_servers_promocampaign = main
596 ############################################ GOLD
597 goldpayment_email =
598 # "thanks for subscribing to reddit gold" return address
599 goldsupport_email =
601 gold_month_price = 3.99
602 gold_year_price = 29.99
604 PAYPAL_BUTTONID_ONETIME_BYMONTH =
605 PAYPAL_BUTTONID_ONETIME_BYYEAR =
606 PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
607 PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
608 PAYPAL_BUTTONID_CREDDITS_BYMONTH =
609 PAYPAL_BUTTONID_CREDDITS_BYYEAR =
610 PAYPAL_BUTTONID_GIFTCODE_BYMONTH =
611 PAYPAL_BUTTONID_GIFTCODE_BYYEAR =
612 STRIPE_MONTHLY_GOLD_PLAN =
613 STRIPE_YEARLY_GOLD_PLAN =
614 COINBASE_BUTTONID_ONETIME_1MO =
615 COINBASE_BUTTONID_ONETIME_3MO =
616 COINBASE_BUTTONID_ONETIME_1YR =
617 COINBASE_BUTTONID_ONETIME_2YR =
618 COINBASE_BUTTONID_ONETIME_3YR =
621 ############################################ SELF-SERVE ADS
622 selfserve_support_email = selfservesupport@mydomain.com
623 MAX_CAMPAIGNS_PER_LINK = 100
624 cpm_selfserve = 1.00
625 cpm_selfserve_geotarget_metro = 2.00
626 cpm_selfserve_collection = 0.75
627 authorizenetapi =
628 default_promote_bid = 50
629 min_promote_bid = 20
630 max_promote_bid = 9999
631 adserver_click_domain =
634 ############################################ TRAFFIC
635 TRAFFIC_ACCESS_KEY =
636 TRAFFIC_SECRET_KEY =
637 RAW_LOG_DIR =
638 PROCESSED_DIR =
639 AGGREGATE_DIR =
640 AWS_LOG_DIR =
641 TRAFFIC_SRC_DIR =
642 TRAFFIC_LOG_HOSTS =
645 ############################################ PERFORMANCE / SCALING
646 # should we split link votes into separate queues based on subreddit id?
647 # this helps with lock contention but isn't necessary on smaller sites
648 shard_link_vote_queues = false
649 # should we split comment tree processing into shards based on the link id?
650 # this helps with lock contention but isn't necessary on smaller sites
651 shard_commentstree_queues = false
652 # chance of a write to the query cache triggering pruning. increasing this will
653 # potentially slow down writes, but will keep the size of cached queries in check better
654 querycache_prune_chance = 0.05
655 # time for the page cache (for unlogged in users)
656 page_cache_time = 90
657 # time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
658 commentpane_cache_time = 120
661 [server:main]
662 use = egg:Paste#http
663 host = 0.0.0.0
664 port = %(http_port)s
666 [filter:gzip]
667 use = egg:r2#gzip
668 compress_level = 6
669 min_size = 800
671 [app:main]
672 use = egg:r2
673 cache_dir = %(here)s/data
675 [loggers]
676 keys = root
678 [logger_root]
679 level = WARNING
680 handlers = console
682 [handlers]
683 keys = console
685 [handler_console]
686 class = StreamHandler
687 args = (sys.stdout,)
689 [formatters]
690 keys = reddit
692 [formatter_reddit]
693 format = %(message)s
695 # the following configuration section makes up the "live" config. if zookeeper
696 # is enabled, then this configuration will be found by the app in zookeeper. to
697 # write it to zookeeper, use the writer script: scripts/write_live_config.
698 [live_config]
699 # permissions! each user should have one of admin, sponsor, or employee as their permission level
700 employees = reddit:admin
701 # links that get their own infrastructure (comma-delimited list of id36s)
702 fastlane_links =
703 # a message placed in the infobar
704 announcement_message =
705 # an info message placed in the sidebar
706 sidebar_message =
707 # an info message placed in the sidebar for gold users
708 gold_sidebar_message =
709 # probability of the subreddit suggester showing up in the spotlight box
710 # for users that have at some point edited their subscriptions:
711 spotlight_interest_sub_p = .05
712 # and for users that have not ever subscribed:
713 spotlight_interest_nosub_p = .1
714 # map of comment tree version to how frequently it should be chosen relative to
715 # the others
716 comment_tree_version_weights = 1:1, 2:0, 3:0
717 # enables/disables client side logging POSTs to /web/log/...
718 frontend_logging = true
719 # daily gold revenue goal (in pennies) for progress bar thing
720 gold_revenue_goal = 0
721 # messages to display in the "you're new here" welcome bar
722 # space-delimited list of strings with / to indicate newlines
723 welcomebar_messages =
724 # sample multireddits (displayed when a user has no multis)
725 listing_chooser_sample_multis = /user/reddit/m/hello, /user/reddit/m/world
726 # multi of subreddits to share with gold users
727 listing_chooser_gold_multi = /user/reddit/m/gold
728 # subreddit showcasing new multireddits
729 listing_chooser_explore_sr =
730 # subreddits that help people discover more subreddits (used in explore tab)
731 discovery_srs =
732 # historical cost to run a reddit server
733 pennies_per_server_second = 1970/1/1:1
734 # lowercased names of accounts that API clients use as "proxies" for gilding
735 proxy_gilding_accounts =
736 # Controversial item determination
737 # Criteria for an item to meet to be determined as controversial
738 cflag_min_votes = 7
739 cflag_lower_bound = 0.4
740 cflag_upper_bound = 0.6
741 # Karma requirements to disable captchas - must meet at least one
742 captcha_exempt_link_karma = 1
743 captcha_exempt_comment_karma = 1
744 # Requirements to allow creating a subreddit - must meet age req + at least one karma req
745 create_sr_account_age_days = 0
746 create_sr_link_karma = 0
747 create_sr_comment_karma = 0
749 #### Features
750 # Availability for the "force HTTPS" option
751 feature_allow_force_https = {"employee": true}
752 # Who is required to use HTTPS?
753 feature_require_https = off
754 # HSTS grants are disabled by default since they make it a pain for devs
755 # to use local HTTP services. Beware that this will disable grant revocation
756 # as well.
757 feature_give_hsts_grants = off
758 feature_multireddit_customizations = off