-
Notifications
You must be signed in to change notification settings - Fork 200
/
app_config.rb
64 lines (54 loc) · 1.44 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
57
58
59
60
61
62
63
64
# General
SiteName = "Lamer News"
SiteUrl = "http://lamernews.com"
SiteDescription = "Programming News"
# Redis config
RedisURL = "redis://127.0.0.1:10000"
# 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 = 1
NewsUpvoteKarmaCost = 1
NewsUpvoteKarmaTransfered = 1
KarmaIncrementComment = 1
# UI Elements
KeyboardNavigation = 1
# User
DeletedUser = {"username" => "deleted_user", "email" => "", "id" => -1}
UserCreationDelay = 3600*24
PasswordResetDelay = 3600*24
UsernameRegexp = /^[a-zA-Z][a-zA-Z0-9_\-]+$/
# News and ranking
NewsAgePadding = 3600*8
TopNewsPerPage = 30
LatestNewsPerPage = 100
NewsEditTime = 60*15
NewsScoreLogStart = 10
NewsScoreLogBooster = 2
RankAgingFactor = 1.1
PreventRepostTime = 3600*48
NewsSubmissionBreak = 60*15
SavedNewsPerPage = 10
TopNewsAgeLimit = 3600*24*30
# Footer links
FooterTwitterLink = false
FooterGoogleGroupLink = false
# API
APIMaxNewsCount = 32
# Email service. Set MailRelay to false to disable this functionality
# (this will prevent users from recovery accounts if the password gets lost).
MailRelay = "localhost"
MailFrom = "[email protected]"