Skip to content

HTTPS clone URL

Subversion checkout URL

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