forked from antirez/lamernews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_config.rb
56 lines (47 loc) · 1.12 KB
/
app_config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# General
SiteName = "OpenSource News"
SiteUrl = "http://news.devopensource.com"
# Redis config
RedisHost = "127.0.0.1"
RedisPort = 6379
# Security
PBKDF2Iterations = 1000 # Set this to 5000 to improve security. But it is slow.
UseOpenSSL = false
PasswordMinLength = 8
# Comments
CommentMaxLength = 4096
CommentEditTime = 3600*2
CommentReplyShift = 60
UserCommentsPerPage = 10
SubthreadsInRepliesPage = 10
# Karma
UserInitialKarma = 1
KarmaIncrementInterval = 3600
KarmaIncrementAmount = 1
NewsDownvoteMinKarma = 30
NewsDownvoteKarmaCost = 6
NewsUpvoteMinKarma = 0
NewsUpvoteKarmaCost = 1
NewsUpvoteKarmaTransfered = 1
KarmaIncrementComment = 1
# UI Elements
KeyboardNavigation = 1
# User
DeletedUser = {"username" => "deleted_user", "email" => "", "id" => -1}
# News and ranking
NewsAgePadding = 3600*8
TopNewsPerPage = 30
LatestNewsPerPage = 100
NewsEditTime = 60*15
NewsScoreLogStart = 10
NewsScoreLogBooster = 2
RankAgingFactor = 1.5
PreventRepostTime = 3600*48
NewsSubmissionBreak = 60*15
SavedNewsPerPage = 10
TopNewsAgeLimit = 3600*48
# Footer links
FooterTwitterLink = false
FooterGoogleGroupLink = false
# API
APIMaxNewsCount = 32