Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

example.ini: Reorganize and document configuration options.

  • Loading branch information...
commit 769386958081ee405611c620657dee3f549796eb 1 parent b38412f
@spladug spladug authored
Showing with 337 additions and 334 deletions.
  1. +337 −334 r2/example.ini
View
671 r2/example.ini
@@ -18,206 +18,361 @@ ADMINSECRET = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
# used to securely authenticate websocket requests to sutro
websocket = YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5
-
-#
-# r2 - Pylons development environment configuration
-#
-# The %(here)s variable will be replaced with the parent directory of this file
-#
[DEFAULT]
+############################################ SITE-SPECIFIC OPTIONS
+#### Appearance
+# the site's tagline, used in the title and description
+short_description = open source is awesome
+# default site interface language (two letter character code)
+site_lang = en
+# default header image url
+default_header_url = reddit.com.header.png
+
+#### Domains
+# the domain that this app expects to be accessed on
+domain = reddit.local
+# the short domain (like redd.it)
+shortdomain =
+# if you use www for the old-timey feel, put it here
+domain_prefix =
+# subdomains that don't need special processing
+reserved_subdomains = www, ssl
+# https api endpoint (must be g.domain or a subdomain of g.domain)
+https_endpoint =
+# (secure) payment domain for self-serve ads
+payment_domain = https://pay.reddit.local/
+# base url where 300x250 ad units (sidebar) are hosted
+ad_domain = http://reddit.local
+# domain where sutro websocket server is hosted
+websocket_host = %(domain)s
+
+#### Accounts and Subreddits
+# the user used for "system" operations and private messages
+system_user = reddit
+# the default subreddit for submissions
+default_sr = reddit.com
+# account used for default feedback messaging (can be /r/subreddit)
+admin_message_acct = reddit
+# subreddit used for DMCA takedowns
+takedown_sr = _takedowns
+# list of subreddits to auto-subscribe users to
+automatic_reddits =
+# special subreddit that only reddit gold subscribers can use
+lounge_reddit =
+# list of accounts with admin powers
+admins = reddit
+# accounts with special access to the ad system
+sponsors =
+# employees that aren't admins or sponsors (Free gilding, admin distinguish, traffic viewing, etc.)
+employees =
-# -- debug and configuation flags --
+#### Static Files
+# if set, these are the domains used for static files served over http and https
+# if not set, no domain will be specified and relative local URLs will be used instead
+static_domain =
+static_secure_domain =
+# if this is true, append .gz to CSS and JS files served from the static domain
+# this is for hosts that don't do on-the-fly gzipping (e.g. s3)
+static_pre_gzipped = false
+static_secure_pre_gzipped = false
+# whether or not to put subreddit stylesheets in the media system or serve dynamically
+subreddit_stylesheets_static = false
+
+#### Ops
+# if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network or host
+# set X-forwarded-for and set this to true
+trust_local_proxies = false
+# hash for validating HTTP_TRUE_CLIENT_IP_HASH as sent by the CDN
+ip_hash =
+# Location (directory) for temp files for diff3 merging
+# Empty will use python default for temp files
+diff3_temp_location =
+
+#### Analytics
+# image to render to track pageviews
+tracker_url = /static/pixel.png
+# images to render to track sponsored links
+adtracker_url = /static/pixel.png
+# image to render to track the ad frame
+adframetracker_url = /static/pixel.png
+# redirector to bounce clicks off of on sponsored links for tracking
+clicktracker_url = /static/pixel.png
+# url to request to track interaction statistics
+uitracker_url = /static/pixel.png
+# domain to send tracking requests (see scripts/tracker.py)
+fetch_trackers_url = http://reddit.local/fetch-trackers
+# google analytics key
+googleanalytics =
+# secret used for signing information on the above tracking pixels
+tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
+
+#### Wiki Pages
+wiki_page_privacy_policy = privacypolicy
+wiki_page_user_agreement = useragreement
+wiki_page_registration_info = registration_info
+wiki_page_gold_bottlecaps = gold_bottlecaps
+
+#### Feature toggles
+disable_ads = false
+disable_captcha = false
+disable_ratelimit = false
+disable_require_admin_otp = false
+disable_wiki = false
+
+
+############################################ DEBUG
# global debug flag -- displays pylons stacktrace rather than 500 page on error when true
-debug = true
-# enables/disables whitespace removal (for development)
+# NOTE: a pylons stacktrace allows remote code execution. make sure this is false in prod.
+debug = false
+# enables/disables whitespace removal in rendered html
template_debug = false
# enables/disables compiled template caching and template file mtime checking
reload_templates = true
# use uncompressed static files (out of /static/js and /static/css)
# rather than compressed files out of /static (for development if true)
uncompressedJS = true
-# enable/disable verbose SQL printing
+# enable/disable verbose logging of SQL queries
sqlprinting = false
-# whether to print a "reddit app started" message at start"
+# directory to write cProfile stats dumps to (disabled if not set)
+profile_directory =
+# template names to record render timings for
+timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
+
+
+############################################ LOGGING
+# whether to print a "reddit app started" message at start
log_start = true
-# enable/disable logging for amqp/rabbitmq
+# enable/disable logging of exceptions and events via amqp/rabbitmq
amqp_logging = false
+# exception reporter objects to give to ErrorMiddleware (see log.py)
+error_reporters =
+
+
+############################################ MEDIA STORAGE
+# which backend provider to use for media (thumbnails, subreddit stylesheets,
+# subreddit images, app icons). options are:
+# s3 - use amazon s3
+# filesystem - write to local filesystem
+# or write your own!
+media_provider = s3
+
+# s3 provider
+# your s3 credentials -- if these are left blank, we'll pass None to
+# boto which will trigger it to look in various places, including instance
+# metadata if on ec2, for credentials.
+S3KEY_ID =
+S3SECRET_KEY =
+# May be one bucket, or many buckets seperated by commas
+s3_media_buckets =
+# Store direct urls for images, rather than buckets
+# For the bucket mybucket with the image helloworld.jpg the stored url would be:
+# true: http://s3.amazonaws.com/mybucket/helloworld.jpg
+# false: http://mybucket/helloworld.jpg
+s3_media_direct = true
+
+# filesystem provider configuration
+media_fs_root =
+media_fs_base_url_http =
+media_fs_base_url_https =
+media_domain = localhost
+
+
+############################################ EMERGENCY MODES
# emergency measures: makes the site read only
read_only_mode = false
# a modified read only mode used for cache shown during heavy load 503s
heavy_load_mode = false
-# directory to write cProfile stats dumps to (disabled if not set)
-profile_directory =
-# exception reporter objects to give to ErrorMiddleware (see log.py)
-error_reporters =
+# override default site language for things like pirate day
+lang_override =
+# enable/disable automatic creation of database tables/column families
+db_create_tables = True
+# are we allowed to write to databases at all?
+disallow_db_writes = False
+# disable custom subreddit stylesheets
+css_killswitch = False
-# the site's tagline, used in the title and description
-short_description = open source is awesome
-CLOUDSEARCH_SEARCH_API =
-CLOUDSEARCH_DOC_API =
-CLOUDSEARCH_SUBREDDIT_SEARCH_API =
-CLOUDSEARCH_SUBREDDIT_DOC_API =
+############################################ SCRAPER
+# user agent for the scraper
+useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
+# Embedly API Key. if no key is provided, the scraper will only fetch thumbnails.
+embedly_api_key =
-# for gold purchases.
-PAYPAL_SECRET =
-PAYPAL_BUTTONID_ONETIME_BYMONTH =
-PAYPAL_BUTTONID_ONETIME_BYYEAR =
-PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
-PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
-PAYPAL_BUTTONID_CREDDITS_BYMONTH =
-PAYPAL_BUTTONID_CREDDITS_BYYEAR =
-STRIPE_WEBHOOK_SECRET =
-STRIPE_PUBLIC_KEY =
-STRIPE_SECRET_KEY =
-STRIPE_MONTHLY_GOLD_PLAN =
-STRIPE_YEARLY_GOLD_PLAN =
+############################################ QUOTAS
+# rate limiter duration (minutes)
+RATELIMIT = 10
+# user agent substrings to hard-ratelimit to a number of requests per ten second period
+# example: agents = googlebot:10, appengine:2
+agents =
+# ratelimits for various types of relations creatable in subreddits
+sr_banned_quota = 10000
+sr_moderator_invite_quota = 10000
+sr_contributor_quota = 10000
+sr_wikibanned_quota = 10000
+sr_wikicontributor_quota = 10000
+sr_quota_time = 7200
+sr_invite_limit = 25
+# delay before allowing a link to be shared
+new_link_share_delay = 30 seconds
+# max number of uploaded images per subreddit
+max_sr_images = 50
-COINBASE_WEBHOOK_SECRET =
-COINBASE_BUTTONID_ONETIME_1MO =
-COINBASE_BUTTONID_ONETIME_2MO =
-COINBASE_BUTTONID_ONETIME_3MO =
-COINBASE_BUTTONID_ONETIME_4MO =
-COINBASE_BUTTONID_ONETIME_5MO =
-COINBASE_BUTTONID_ONETIME_6MO =
-COINBASE_BUTTONID_ONETIME_7MO =
-COINBASE_BUTTONID_ONETIME_8MO =
-COINBASE_BUTTONID_ONETIME_9MO =
-COINBASE_BUTTONID_ONETIME_10MO =
-COINBASE_BUTTONID_ONETIME_11MO =
-COINBASE_BUTTONID_ONETIME_1YR =
-COINBASE_BUTTONID_ONETIME_2YR =
-COINBASE_BUTTONID_ONETIME_3YR =
-RG_SECRET =
+############################################ THRESHOLDS
+# minimum item score to be considered for quota baskets
+QUOTA_THRESHOLD = 5
+# if the user has positive total karma, their per-subreddit karma will default to this, else 0
+MIN_UP_KARMA = 1
+# karma needed to avoid per-subreddit submission ratelimits
+MIN_RATE_LIMIT_KARMA = 10
+MIN_RATE_LIMIT_COMMENT_KARMA = 1
+# ages in days at which various actions are disallowed to preserve history
+REPLY_AGE_LIMIT = 180
+VOTE_AGE_LIMIT = 180
+REPORT_AGE_LIMIT = 180
+# minimum age of an account (in days) for the "create a subreddit" button to show
+min_membership_create_community = 30
+# maximum age (in days) of items eligible for display on normalized hot pages (frontpage, multis, etc.)
+HOT_PAGE_AGE = 1000
+# how long to consider links eligible for the rising page
+rising_period = 12 hours
+# default number of comments shown
+num_comments = 100
+# max number of comments to show at once
+max_comments = 500
+max_comments_gold = 2500
+# number of subreddits to put in the defaults for unlogged users
+num_default_reddits = 10
+# how deep do we go into the top listing when fetching /random
+num_serendipity = 250
+# number of subscriptions a user needs to have before the "my subreddits"
+# dropdown is shown
+sr_dropdown_threshold = 15
+# Conflate visits to a comment page that happen within this many
+# seconds of each other (gold "new comments" feature)
+comment_visits_period = 600
+# Number of days to keep recent wiki revisions for
+wiki_keep_recent_days = 7
+# Max number of bytes for wiki pages
+wiki_max_page_length_bytes = 262144
+# Max wiki page name length
+wiki_max_page_name_length = 128
+# Max number of separators in a wiki page name
+wiki_max_page_separators = 3
-# -- feature toggles --
-disable_ads = false
-disable_captcha = false
-disable_ratelimit = false
-disable_require_admin_otp = false
-# Disable wiki editing and viewing for everyone except admins
-disable_wiki = false
+############################################ SEARCH
+# endpoint for link search
+CLOUDSEARCH_SEARCH_API =
+# endpoint for link upload
+CLOUDSEARCH_DOC_API =
+# endpoint for subreddit search
+CLOUDSEARCH_SUBREDDIT_SEARCH_API =
+# endpoint for subreddit upload
+CLOUDSEARCH_SUBREDDIT_DOC_API =
-# -- important settings --
-# the domain that this app serves itself up as
-domain = reddit.local
-# the short domain (like redd.it)
-shortdomain =
-# if you use www for the old-timey feel, put it here
-domain_prefix =
-# subdomains that don't need special processing
-reserved_subdomains = www, ssl
-# the user used for "system" operations and messages
-system_user = reddit
-# list of admin accounts
-admins = reddit
-# the default subreddit for submissions
-default_sr = reddit.com
-# default header image url
-default_header_url = reddit.com.header.png
-# time for the page cache (for unlogged in users)
-page_cache_time = 90
-# time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
-commentpane_cache_time = 120
+############################################ MEMCACHE
+num_mc_clients = 5
+# core memcache cluster, Things and various other stuff
+memcaches = 127.0.0.1:11211
+# caches used for @memoize decorator magic
+memoizecaches = 127.0.0.1:11211
+# hosts to store memcache-based locks on
+lockcaches = 127.0.0.1:11211
+# hosts to store rendered template fragments in
+rendercaches = 127.0.0.1:11211
+# hosts to store entire rendered pages in
+pagecaches = 127.0.0.1:11211
+# hosts that cache permacache cassandra data
+permacache_memcaches = 127.0.0.1:11211
+# a local cache that's not globally consistent and can have stale data (optional)
+stalecaches =
+
+############################################ MISCELLANEOUS
# default localization for strings (when using python's locale.format)
+# (mostly replaced by babel, this shouldn't be necessary to change)
locale = C
-# default site language (two letter character code)
-site_lang = en
-lang_override =
-# if your webserver is a proxy and on a different instance on the same 10.0.0.0/8 network
-# set X-forwarded-for and set this to true
-trust_local_proxies = false
-# hash for validating HTTP_TRUE_CLIENT_IP_HASH
-ip_hash =
-# timezone for storing
+# storage timezone, should probably not be changed from UTC
timezone = UTC
-# timezone for the database
+# timezone for display of some data, deprecated
display_timezone = MST
-# https api endpoint (must be g.domain or a subdomain of g.domain)
-https_endpoint =
+# location of the static directory
+static_path = /static/
+# Just a list of words. Used by errorlog.py to make up names for new errors.
+words_file = /usr/dict/words
+# domains that we consider URLs case sensitive for repost detection purposes
+case_sensitive_domains = i.imgur.com, youtube.com
+
+
+############################################ AUTHENTICATION
+# how to authenticate users. see r2/lib/authentication.py for options
+authentication_provider = cookie
+# the work factor for bcrypt, increment this every time computers double in
+# speed. don't worry, changing this won't break old passwords
+bcrypt_work_factor = 12
# name of the cookie to drop with login information
login_cookie = reddit_session
# name of the admin cookie
admin_cookie = reddit_admin
# name of the otp cookie
otp_cookie = reddit_otp
-# how to authenticate users. see r2/lib/authentication.py for options
-authentication_provider = cookie
-# the work factor for bcrypt, increment this every time computers double in
-# speed. don't worry, changing this won't break old passwords
-bcrypt_work_factor = 12
-
-# account used for default feedback messaging (can be /r/subreddit)
-admin_message_acct = reddit
+# the maximum life of an admin cookie (seconds)
+ADMIN_COOKIE_TTL = 32400
+# the maximum amount of idle time for an admin cookie (seconds)
+ADMIN_COOKIE_MAX_IDLE = 900
+# the maximum life of an otp cookie
+OTP_COOKIE_TTL = 604800
-# -- caching options --
-# data cache (used for caching Thing objects)
-num_mc_clients = 5
-memcaches = 127.0.0.1:11211
-# caches used for @memoize decorator magic
-memoizecaches = 127.0.0.1:11211
-# caches to use for locking
-lockcaches = 127.0.0.1:11211
-stalecaches =
-rendercaches = 127.0.0.1:11211
-pagecaches = 127.0.0.1:11211
-
-# -- permacache options --
-# permacache is memcaches -> cassanda -> memcachedb
-# memcaches that sit in front of cassandra
-permacache_memcaches = 127.0.0.1:11211
-# cassandra hosts. one of these will be chosen at random by pycassa
+############################################ CASSANDRA
+# cassandra hosts
cassandra_seeds = 127.0.0.1:9160
# number of connections to keep open to the cassandra ring
cassandra_pool_size = 5
-# read/write consistency levels for Cassandra
+# default read/write consistency levels for Cassandra
cassandra_rcl = ONE
cassandra_wcl = ONE
# name of default connection pool to use when _connection_pool not specified
cassandra_default_pool = main
-## -- traffic tracking urls --
-# domain to send tracking requests (see scripts/tracker.py)
-fetch_trackers_url = http://reddit.local/fetch-trackers
-# image to render to track pageviews
-tracker_url = /static/pixel.png
-# images to render to track sponsored links
-adtracker_url = /static/pixel.png
-# image to render to track the ad frame
-adframetracker_url = /static/pixel.png
-# open redirector to bounce clicks off of on sponsored links for tracking
-clicktracker_url = /static/pixel.png
-# url to request to track interaction statistics
-uitracker_url = /static/pixel.png
-# amqp
+############################################ AMQP
amqp_host = localhost:5672
amqp_user = reddit
amqp_pass = reddit
amqp_virtual_host = /
-## -- zookeeper --
-# optional at the moment
+
+############################################ ZOOKEEPER
+# zookeeper is optional at the moment
zookeeper_connection_string =
zookeeper_username =
zookeeper_password =
-## -- database setup --
-# list of all databases named in the subsequent table
-databases = main, comment, vote, email, authorize, award, hc, traffic
+############################################ EMAIL
+smtp_server = localhost
+# where to send alerts for exceptions, etc.
+nerds_email = nerds@reddit.com
+# the "from" address for link share emails
+share_reply = noreply@reddit.com
+# where to send feedback comments
+feedback_email = reddit@gmail.com
+
+
+############################################ POSTGRES
db_user = reddit
db_pass = password
db_port = 5432
db_pool_size = 3
db_pool_overflow_size = 3
+# list of all databases named in the subsequent table
+databases = main, comment, vote, email, authorize, award, hc, traffic
+
#db name db host user, pass, port, conn, overflow_conn
main_db = reddit, 127.0.0.1, *, *, *, *, *
comment_db = reddit, 127.0.0.1, *, *, *, *, *
@@ -233,10 +388,6 @@ hardcache_categories = *:hc:hc
# this setting will prefix all of the table names
db_app_name = reddit
-# are we allowed to create tables?
-db_create_tables = True
-# are we allowed to write at all?
-disallow_db_writes = False
type_db = main
rel_type_db = main
@@ -298,35 +449,56 @@ db_servers_flair = main
db_servers_promocampaign = main
-## -- traffic analytics --
-# google analytics token
-googleanalytics =
-# secret used for talking to the traffic machine
-tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
+############################################ GOLD
+gold_month_price = 3.99
+gold_year_price = 29.99
+PAYPAL_SECRET =
+PAYPAL_BUTTONID_ONETIME_BYMONTH =
+PAYPAL_BUTTONID_ONETIME_BYYEAR =
+PAYPAL_BUTTONID_AUTORENEW_BYMONTH =
+PAYPAL_BUTTONID_AUTORENEW_BYYEAR =
+PAYPAL_BUTTONID_CREDDITS_BYMONTH =
+PAYPAL_BUTTONID_CREDDITS_BYYEAR =
+STRIPE_PUBLIC_KEY =
+STRIPE_SECRET_KEY =
+STRIPE_MONTHLY_GOLD_PLAN =
+STRIPE_YEARLY_GOLD_PLAN =
+COINBASE_WEBHOOK_SECRET =
+COINBASE_BUTTONID_ONETIME_1MO =
+COINBASE_BUTTONID_ONETIME_2MO =
+COINBASE_BUTTONID_ONETIME_3MO =
+COINBASE_BUTTONID_ONETIME_4MO =
+COINBASE_BUTTONID_ONETIME_5MO =
+COINBASE_BUTTONID_ONETIME_6MO =
+COINBASE_BUTTONID_ONETIME_7MO =
+COINBASE_BUTTONID_ONETIME_8MO =
+COINBASE_BUTTONID_ONETIME_9MO =
+COINBASE_BUTTONID_ONETIME_10MO =
+COINBASE_BUTTONID_ONETIME_11MO =
+COINBASE_BUTTONID_ONETIME_1YR =
+COINBASE_BUTTONID_ONETIME_2YR =
+COINBASE_BUTTONID_ONETIME_3YR =
+RG_SECRET =
+STRIPE_WEBHOOK_SECRET =
-## -- Self-service sponsored link stuff --
-# (secure) payment domain
-payment_domain = https://pay.reddit.local/
-ad_domain = http://reddit.local
-sponsors =
-selfserve_support_email = selfservesupport@mydomain.com
+############################################ SELF-SERVE ADS
+selfserve_support_email = selfservesupport@mydomain.com
MAX_CAMPAIGNS_PER_LINK = 100
cpm_selfserve = 1.00
cpm_selfserve_geotarget = 0.25
-
# authorize.net credentials (blank authorizenetapi to disable)
authorizenetapi =
# authorizenetapi = https://api.authorize.net/xml/v1/request.api
-authorizenetname =
-authorizenetkey =
-
+authorizenetname =
+authorizenetkey =
min_promote_bid = 20
max_promote_bid = 9999
min_promote_future = 2
max_promote_future = 93
-# traffic log processing
+
+############################################ TRAFFIC
TRAFFIC_ACCESS_KEY =
TRAFFIC_SECRET_KEY =
RAW_LOG_DIR =
@@ -334,194 +506,24 @@ PROCESSED_DIR =
AGGREGATE_DIR =
AWS_LOG_DIR =
TRAFFIC_SRC_DIR =
-TRAFFIC_LOG_HOSTS =
+TRAFFIC_LOG_HOSTS =
-###
-# Other magic settings
-###
+############################################ PERFORMANCE / SCALING
# should we split link votes into separate queues based on subreddit id?
# this helps with lock contention but isn't necessary on smaller sites
shard_link_vote_queues = false
-
# should we split comment tree processing into shards based on the link id?
# this helps with lock contention but isn't necessary on smaller sites
shard_commentstree_queues = false
-
-# -- query cache settings --
+# chance of a write to the query cache triggering pruning. increasing this will
+# potentially slow down writes, but will keep the size of cached queries in check better
querycache_prune_chance = 0.05
+# time for the page cache (for unlogged in users)
+page_cache_time = 90
+# time for the comment pane cache (for a subset of logged in users, see pages.py:CommentPane)
+commentpane_cache_time = 120
-# -- stylesheet editor --
-# disable custom stylesheets
-css_killswitch = False
-# max number of uploaded images per subreddit
-max_sr_images = 50
-# location of the static directory
-static_path = /static/
-# if set, these are the domains used for static files served over http and https
-# if not set, no domain will be specified
-static_domain =
-static_secure_domain =
-# if this is true, append .gz to CSS and JS files served from the static domain
-# this is for hosts that don't do on-the-fly gzipping (e.g. s3)
-static_pre_gzipped = false
-static_secure_pre_gzipped = false
-# whether or not to put subreddit stylesheets on the thumbnail s3 buckets
-subreddit_stylesheets_static = false
-
-# subreddit used for DMCA takedowns
-takedown_sr = _takedowns
-
-# Just a list of words. Used by errlog.py to make up names for new errors.
-words_file = /usr/dict/words
-
-# -- media stuff --
-# user agent for the scraper
-useragent = Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
-# Embedly API Key
-embedly_api_key =
-
-# which backend provider to use for media (thumbnails, subreddit stylesheets,
-# subreddit images, app icons). options are:
-# s3 - use amazon s3
-# filesystem - write to local filesystem
-# or write your own!
-media_provider = s3
-
-# s3 provider
-# your s3 credentials -- if these are left blank, we'll pass None to
-# boto which will trigger it to look in various places, including instance
-# metadata if on ec2, for credentials.
-S3KEY_ID =
-S3SECRET_KEY =
-# May be one bucket, or many buckets seperated by commas
-s3_media_buckets =
-# Store direct urls for images, rather than buckets
-# For the bucket mybucket with the image helloworld.jpg the stored url would be:
-# true: http://s3.amazonaws.com/mybucket/helloworld.jpg
-# false: http://mybucket/helloworld.jpg
-s3_media_direct = true
-
-# filesystem provider configuration
-media_fs_root =
-media_fs_base_url_http =
-media_fs_base_url_https =
-
-media_domain = localhost
-
-# the hostname to connect to for websockets
-websocket_host =
-
-# -- prices --
-gold_month_price = 3.99
-gold_year_price = 29.99
-
-# -- limits --
-# rate limiter duration (minutes)
-RATELIMIT = 10
-# minimum display karma
-MIN_UP_KARMA = 1
-MIN_RATE_LIMIT_KARMA = 10
-MIN_RATE_LIMIT_COMMENT_KARMA = 1
-QUOTA_THRESHOLD = 5
-# Links and comments older than this many days qualify for historic preservation
-REPLY_AGE_LIMIT = 180
-# Links and comments older than this many days can't be voted on
-VOTE_AGE_LIMIT = 180
-# Reports on links and comments older than this many days are ignored
-REPORT_AGE_LIMIT = 180
-# minimum age, in days, of an account to be eligible to create a community
-min_membership_create_community = 30
-# the maximum life of an admin cookie (seconds)
-ADMIN_COOKIE_TTL = 32400
-# the maximum amount of idle time for an admin cookie (seconds)
-ADMIN_COOKIE_MAX_IDLE = 900
-# the maximum life of an otp cookie
-OTP_COOKIE_TTL = 604800
-
-HOT_PAGE_AGE = 1000
-
-# -- display options --
-# how long to consider links eligible for the rising page
-rising_period = 12 hours
-# max number of comments (default)
-num_comments = 100
-# max number of comments (non-gold)
-max_comments = 500
-# max number of comments (gold)
-max_comments_gold = 2500
-# list of reddits to auto-subscribe users to
-automatic_reddits =
-# special reddit that only reddit gold subscribers can use
-lounge_reddit =
-# cutoff number of reddits to show unsubscribed users
-num_default_reddits = 10
-# how deep do we go into the top listing when fetching /random
-num_serendipity = 250
-sr_dropdown_threshold = 15
-
-# Conflate visits to a comment page that happen within this many
-# seconds of each other
-comment_visits_period = 600
-
-# user-agents to rate-limit with number of requests every ten seconds
-# To limit GoogleBot to 10 requests and AppEngine to 2 requests and AppEngine to 2 requests every 10 seconds
-# agents = googlebot:10, appengine:2
-agents =
-# subreddit ratelimits
-sr_banned_quota = 10000
-sr_moderator_invite_quota = 10000
-sr_contributor_quota = 10000
-sr_wikibanned_quota = 10000
-sr_wikicontributor_quota = 10000
-sr_quota_time = 7200
-sr_invite_limit = 25
-
-# -- email --
-# smtp server
-smtp_server = localhost
-# delay before allowing a link to be shared
-new_link_share_delay = 30 seconds
-# alerter emails
-nerds_email = nerds@reddit.com
-# share reply email
-share_reply = noreply@reddit.com
-# feedback email
-feedback_email = reddit@gmail.com
-
-# Special case sensitive domains
-case_sensitive_domains = i.imgur.com, youtube.com
-
-# Number of days to keep recent wiki revisions for
-wiki_keep_recent_days = 7
-
-# Max number of bytes for wiki pages
-wiki_max_page_length_bytes = 262144
-
-# Max wiki page name length
-wiki_max_page_name_length = 128
-
-# Max number of separators in a wiki page name
-wiki_max_page_separators = 3
-
-# Location (directory) for temp files for diff3 merging
-# Empty will use python default for temp files
-# Pro tip: Use /dev/shm for in-memory diff3
-diff3_temp_location =
-
-# -- policy wiki pages --
-wiki_page_privacy_policy = privacypolicy
-wiki_page_user_agreement = useragreement
-wiki_page_registration_info = registration_info
-
-# -- other wiki pages --
-wiki_page_gold_bottlecaps = gold_bottlecaps
-
-# Template names to record render timings for
-timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
-
-# employees that aren't admins or sponsors (Free gilding, admin distinguish, traffic viewing, etc.)
-employees =
[server:main]
use = egg:Paste#http
@@ -530,6 +532,7 @@ port = %(http_port)s
[app:main]
use = egg:r2
+# %(here)s is the directory containing the configuration file
cache_dir = %(here)s/data
filter-with = gzip
Please sign in to comment.
Something went wrong with that request. Please try again.