170 lines
4.3 KiB
INI
170 lines
4.3 KiB
INI
[main]
|
|
dbDriver = "sqlite"
|
|
dbLocation = "./data/db.sqlite"
|
|
dbUser = "test"
|
|
dbPass = "test"
|
|
cachePath = "./cache/"
|
|
logsPath = "./data/logs/{yyyy}-{mm}.log"
|
|
filesPath = "./public_html/files/"
|
|
mediaPath = "./public_html/media/"
|
|
thumbnailsPath = "./public_html/thumbs/"
|
|
avatarsPath = "./public_html/avatars/"
|
|
salt = "1A2/$_4xVa"
|
|
|
|
[appearance]
|
|
title = "szurubooru"
|
|
;favicon = "/media/img/favicon.png"
|
|
;extraScripts[] = "/media/scripts/extra1.js"
|
|
;extraScripts[] = "/media/scripts/extra2.js"
|
|
;extraStyles[] = "/media/scripts/extra.css"
|
|
|
|
[misc]
|
|
featuredPostMaxDays=7
|
|
proxyThumbsInUpload=0
|
|
debugQueries=0
|
|
githubLink = http://github.com/rr-/szurubooru
|
|
|
|
[help]
|
|
title=Help
|
|
subTitles[help]=General help
|
|
subTitles[rules]=Rules
|
|
subTitles[privacy]=Privacy policy
|
|
paths[help]=./data/help.md
|
|
paths[rules]=./data/rules.md
|
|
paths[privacy]=./data/privacy.md
|
|
|
|
[browsing]
|
|
usersPerPage=8
|
|
postsPerPage=20
|
|
logsPerPage=250
|
|
tagsPerPage=100
|
|
tagsRelated=15
|
|
thumbnailWidth=175
|
|
thumbnailHeight=175
|
|
thumbnailStyle=outside
|
|
endlessScrollingDefault=1
|
|
showPostTagTitlesDefault=0
|
|
showDislikedPostsDefault=1
|
|
maxSearchTokens=4
|
|
maxRelatedPosts=50
|
|
|
|
[tags]
|
|
minLength = 1
|
|
maxLength = 64
|
|
regex = "/^[()\[\]a-zA-Z0-9_.-]+$/i"
|
|
|
|
[posts]
|
|
maxSourceLength = 200
|
|
|
|
[comments]
|
|
minLength = 5
|
|
maxLength = 2000
|
|
commentsPerPage = 10
|
|
maxCommentsInList = 5
|
|
needEmailForCommenting = 0
|
|
|
|
[uploads]
|
|
needEmailForUploading = 1
|
|
logAnonymousUploadsNicknames = 1
|
|
allowAnonymousUploads = 1
|
|
|
|
[registration]
|
|
staffActivation = 0
|
|
passMinLength = 5
|
|
passRegex = "/^.+$/"
|
|
userNameMinLength = 3
|
|
userNameMaxLength = 20
|
|
userNameRegex = "/^[\w_-]+$/ui"
|
|
|
|
needEmailForRegistering = 1
|
|
confirmationEmailEnabled = 1
|
|
confirmationEmailSenderName = "{host} mailing system"
|
|
confirmationEmailSenderEmail = "noreply@{host}"
|
|
confirmationEmailSubject = "{host} - account activation"
|
|
confirmationEmailBody = "Hello,{nl}{nl}You received this e-mail because someone registered a user with this e-mail address at {host}. If it's you, visit {link} to finish registration process, otherwise you may ignore and delete this e-mail.{nl}{nl}Kind regards,{nl}{host} mailing system"
|
|
passwordResetEmailSenderName = "{host} mailing system"
|
|
passwordResetEmailSenderEmail = "noreply@{host}"
|
|
passwordResetEmailSubject = "{host} - password reset"
|
|
passwordResetEmailBody = "Hello,{nl}{nl}You received this e-mail because someone requested a password reset for user with this e-mail address at {host}. If it's you, visit {link} to finish password reset process, otherwise you may ignore and delete this e-mail.{nl}{nl}Kind regards,{nl}{host} mailing system"
|
|
|
|
[privileges]
|
|
registerAccount=anonymous
|
|
;registerAccount=nobody
|
|
|
|
listPosts=anonymous
|
|
listPosts.safe=anonymous
|
|
listPosts.sketchy=registered
|
|
listPosts.unsafe=registered
|
|
listPosts.hidden=moderator
|
|
|
|
;privilege to view post page, e.g. example.com/post/53
|
|
viewPost=anonymous
|
|
viewPost.safe=anonymous
|
|
viewPost.sketchy=registered
|
|
viewPost.unsafe=registered
|
|
viewPost.hidden=moderator
|
|
|
|
retrievePost=anonymous
|
|
favoritePost=registered
|
|
|
|
addPost=registered
|
|
addPostSafety=registered
|
|
addPostTags=registered
|
|
addPostThumbnail=power-user
|
|
addPostSource=registered
|
|
addPostRelations=power-user
|
|
addPostContent=registered
|
|
|
|
editPost=registered
|
|
editPostSafety.own=registered
|
|
editPostSafety.all=moderator
|
|
editPostTags=registered
|
|
editPostThumbnail=moderator
|
|
editPostSource=moderator
|
|
editPostRelations.own=registered
|
|
editPostRelations.all=moderator
|
|
editPostContent=moderator
|
|
|
|
massTag.own=registered
|
|
massTag.all=power-user
|
|
hidePost=moderator
|
|
deletePost=moderator
|
|
featurePost=moderator
|
|
scorePost=registered
|
|
flagPost=registered
|
|
|
|
listUsers=registered
|
|
viewUser=registered
|
|
viewUserEmail.own=registered
|
|
viewUserEmail.all=admin
|
|
editUserPassword.own=registered
|
|
editUserPassword.all=admin
|
|
editUserEmail.own=registered
|
|
editUserEmail.all=admin
|
|
editUserEmailNoConfirm=admin
|
|
editUserAccessRank=admin
|
|
editUserName=moderator
|
|
editUserAvatar.own=registered
|
|
editUserAvatar.all=admin
|
|
editUserSettings.own=registered
|
|
editUserSettings.all=nobody
|
|
acceptUserRegistration=moderator
|
|
banUser.own=nobody
|
|
banUser.all=admin
|
|
deleteUser.own=registered
|
|
deleteUser.all=nobody
|
|
flagUser=registered
|
|
|
|
listComments=anonymous
|
|
addComment=registered
|
|
deleteComment.own=registered
|
|
deleteComment.all=moderator
|
|
editComment.own=registered
|
|
editComment.all=admin
|
|
|
|
listTags=anonymous
|
|
mergeTags=moderator
|
|
renameTags=moderator
|
|
|
|
listLogs=moderator
|
|
viewLog=moderator
|