Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 229 lines (176 sloc) 5.43 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]
7 debug = true
8 template_debug = true
9 uncompressedJS = true
10 translator = true
9813d94 @jedberg Make reddit compatible with Postgres 8.3 and Python 2.6
jedberg authored
11 sqlprinting = false
a402d48 New features:
Mike authored
12 exception_logging = false
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
13 log_start = true
14
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
15 proxy_addr =
16 log_path =
17
47370d5 @KeyserSosa make locale INI file dependent
KeyserSosa authored
18 locale = C
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
19 memcaches = 127.0.0.1:11211
ae6ba7a added a separate set of memcaches for the render cache
spez authored
20 rendercaches = 127.0.0.1:11211
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
21 rec_cache = 127.0.0.1:11311
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
22
67814d5 @ketralnis Features:
ketralnis authored
23 # -- permacache options --
24 # permacache is memcaches -> cassanda -> memcachedb
25 # memcaches that sit in front of cassandra
26 permacache_memcaches = 127.0.0.1:11211
27 # cassandra hosts. one of these will be chosen at random by pycassa
28 cassandra_seeds = 127.0.0.1:9160
29 # memcachedbs
30 permacaches = 127.0.0.1:11211
31
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
32 # site tracking urls. All urls are assumed to be to an image unless
33 # otherwise noted:
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
34 tracker_url =
b939659 @ketralnis Allow a link to be forced into the organic link box for site-wide announ...
ketralnis authored
35 adtracker_url =
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
36 adframetracker_url =
37 # for tracking clicks. Should be the url of a redirector
3c19fd2 @ketralnis * decorate promoted links
ketralnis authored
38 clicktracker_url =
780d9bb @KeyserSosa example.ini bugfixes and first trials of site traffic integration
KeyserSosa authored
39 traffic_url =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
40
a402d48 New features:
Mike authored
41 # Just a list of words. Used by errlog.py to make up names for new errors.
42 words_file = /usr/dict/words
43
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
44 # for sponsored links:
45 payment_domain = https://pay.localhost/
46 authorizenetname =
47 authorizenetkey =
48 authorizenetapi =
49 min_promote_bid = 20
50 max_promote_bid = 9999
51 min_promote_future = 2
52
53
54
55 amqp_host = localhost:5672
56 amqp_user = guest
57 amqp_pass = guest
58 amqp_virtual_host = /
59
60 databases = main, comment, vote, change, email, authorize, award
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
61
1855d70 fix example.ini
spez authored
62 #db name db host user, pass
63 main_db = newreddit, 127.0.0.1, ri, password
64 comment_db = newreddit, 127.0.0.1, ri, password
65 comment2_db = newreddit, 127.0.0.1, ri, password
66 vote_db = newreddit, 127.0.0.1, ri, password
67 change_db = changed, 127.0.0.1, ri, password
68 email_db = email, 127.0.0.1, ri, password
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
69 authorize_db = authorize, 127.0.0.1, ri, password
70 award_db = award, 127.0.0.1, ri, password
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
71
72 db_app_name = reddit
73 db_create_tables = True
74
75 type_db = main
76 rel_type_db = main
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
77 hardcache_db = main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
78
79 db_table_link = thing, main, main
80 db_table_account = thing, main
81 db_table_message = thing, main
82
83 db_table_savehide = relation, account, link, main
84 db_table_click = relation, account, link, main
85
86 db_table_comment = thing, comment
87 db_table_subreddit = thing, comment
88
89 db_table_srmember = relation, subreddit, account, comment
90
91 db_table_friend = relation, account, account, comment
92
93 db_table_vote_account_link = relation, account, link, vote
94 db_table_vote_account_comment = relation, account, comment, vote
95
780d9bb @KeyserSosa example.ini bugfixes and first trials of site traffic integration
KeyserSosa authored
96 db_table_inbox_account_comment = relation, account, comment, main
2a5f891 Moved database configuration from databases.py to the ini.
spez authored
97 db_table_inbox_account_message = relation, account, message, main
98
99 db_table_report_account_link = relation, account, link, main
100 db_table_report_account_comment = relation, account, comment, comment
101 db_table_report_account_message = relation, account, message, main
102 db_table_report_account_subreddit = relation, account, subreddit, main
103
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
104 db_table_award = thing, award
105 db_table_trophy = relation, account, award, award
106
a402d48 New features:
Mike authored
107 db_table_ad = thing, main
108 db_table_adsr = relation, ad, subreddit, main
109
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
110 disallow_db_writes = False
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
111
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
112 ###
113 # Other magic settings
114 ###
115
116 timezone = UTC
0745f5b @KeyserSosa make 1/2 of the default reddits English reddits if the user hasn't set t...
KeyserSosa authored
117 lang = en
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
118 monitored_servers = localhost
119
67814d5 @ketralnis Features:
ketralnis authored
120 usage_sampling = 0.0
a402d48 New features:
Mike authored
121
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
122 #query cache settings
e958959 @KeyserSosa missing except block in share, cache cleanup, and example.ini updates
KeyserSosa authored
123 num_query_queue_workers = 0
1861a04 fixed sorting issue where the global sorts were being overwritten. added...
Steve Huffman authored
124 query_queue_worker =
125 enable_doquery = False
126 use_query_cache = False
127 write_query_queue = False
128
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
129 stylesheet = reddit.css
130 stylesheet_rtl = reddit_rtl.css
131
6bcef00 @ketralnis 1. Allow a reddit to have a cname, like www.proggit.com, that renders
ketralnis authored
132 allowed_css_linked_domains = my.domain.com, my.otherdomain.com
8aac82e @ketralnis Added forgotten example.ini parameter
ketralnis authored
133 css_killswitch = False
7a30629 @KeyserSosa added the ability for subreddit moderators to upload custom images for u...
KeyserSosa authored
134 max_sr_images = 20
6bcef00 @ketralnis 1. Allow a reddit to have a cname, like www.proggit.com, that renders
ketralnis authored
135
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
136 takedown_sr = _takedowns
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
137 login_cookie = reddit_session
138 domain = localhost
21b7f4b @KeyserSosa fix to cname handling and graceful bookmarklet rejection.
KeyserSosa authored
139 domain_prefix =
2cf3490 @ketralnis * add some new scrapers
ketralnis authored
140 media_domain = localhost
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
141 default_sr = localhost
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
142 automatic_reddits =
143
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
144 admins =
3c19fd2 @ketralnis * decorate promoted links
ketralnis authored
145 sponsors =
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
146 paid_sponsors =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
147 page_cache_time = 30
148 static_path = /static/
bcca862 add media features
shuffman authored
149 useragent = Mozilla/5.0 (compatible; bot/1.0; ChangeMe)
bf9f43c @KeyserSosa Messaging/commenting
KeyserSosa authored
150 allow_shutdown = False
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
151 profanity_wordlist =
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
152
153 solr_url =
f6fbb05 @ketralnis Cache solr query results for a short time. Speeds up domain listings and...
ketralnis authored
154 solr_cache_time = 300
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
155
2869eaf @ketralnis New features:
ketralnis authored
156 markdown_backend = py
157
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
158 SECRET = abcdefghijklmnopqrstuvwxyz0123456789
159 MODSECRET = abcdefghijklmnopqrstuvwxyz0123456789
b939659 @ketralnis Allow a link to be forced into the organic link box for site-wide announ...
ketralnis authored
160 tracking_secret = abcdefghijklmnopqrstuvwxyz0123456789
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
161 ip_hash =
bcca862 add media features
shuffman authored
162 S3KEY_ID = ABCDEFGHIJKLMNOP1234
163 S3SECRET_KEY = aBcDeFgHiJkLmNoPqRsTuVwXyZ1234567890AbCd
164 s3_thumb_bucket = /your.bucket.here/
165 default_thumb = /static/noimage.png
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
166
167 MIN_DOWN_LINK = 0
168 MIN_UP_KARMA = 0
169 MIN_DOWN_KARMA = 0
170 MIN_RATE_LIMIT_KARMA = 0
171 MIN_RATE_LIMIT_COMMENT_KARMA = 0
172
2de837f New help system and footer
Mike authored
173 WIKI_KARMA = 50
174
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
175 # time in days
176 MODWINDOW = 2
177 HOT_PAGE_AGE = 1
178
bcca862 add media features
shuffman authored
179 #
180 rising_period = 12 hours
181
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
182 # time of ratelimit purgatory (min)
183 RATELIMIT = 10
184
185 num_comments = 200
186 max_comments = 500
0745f5b @KeyserSosa make 1/2 of the default reddits English reddits if the user hasn't set t...
KeyserSosa authored
187 num_default_reddits = 10
7ee5b70 toolbar 2.1
Mike authored
188 num_serendipity = 100
852b989 srbar updates
Mike authored
189 sr_dropdown_threshold = 15
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
190
7ce107f @KeyserSosa sharing
KeyserSosa authored
191 smtp_server = localhost
192 new_link_share_delay = 5 minutes
a402d48 New features:
Mike authored
193
194 # email address of the person / people running your site
195 nerds_email = root@localhost
196
7ce107f @KeyserSosa sharing
KeyserSosa authored
197 share_reply = noreply@yourdomain.com
198
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
199 #user-agents to limit
200 agents =
201
202 feedback_email = abuse@localhost
203
9c4ebbb @KeyserSosa Allow submissions with short enough titled to be made into T-shirts thru...
KeyserSosa authored
204 # t-shirt stuff
205 spreadshirt_url =
206 spreadshirt_vendor_id =
207 spreadshirt_min_font = 42
208 spreadshirt_max_width = 620
209 spreadshirt_test_font =
210
7ce107f @KeyserSosa sharing
KeyserSosa authored
211
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
212 [server:main]
213 use = egg:Paste#http
214 host = 0.0.0.0
5ef76b9 @KeyserSosa New features:
KeyserSosa authored
215 port = %(scgi_port)s
4778b17 @KeyserSosa initial checkin
KeyserSosa authored
216
217 [app:main]
218 use = egg:r2
219 cache_dir = %(here)s/data
220 beaker.session_key = r2
221 beaker.session_secret = somesecret
222 #lang = en
223
224 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
225 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
226 # execute malicious code after an exception is raised.
227 #set debug = false
228
Something went wrong with that request. Please try again.