2013-10-05 12:55:03 +02:00
[main]
2014-05-20 19:20:07 +02:00
dbDriver = "sqlite"
dbLocation = "./data/db.sqlite"
dbUser = "test"
dbPass = "test"
filesPath = "./data/files/"
logsPath = "./data/logs/{yyyy}-{mm}.log"
mediaPath = "./public_html/media/"
thumbnailsPath = "./public_html/thumbs/"
2014-05-20 19:46:05 +02:00
avatarsPath = "./public_html/avatars/"
2014-05-20 19:20:07 +02:00
salt = "1A2/$_4xVa"
2013-11-10 11:18:00 +01:00
2014-06-10 12:01:15 +02:00
[appearance]
title = "szurubooru"
;favicon = "/media/img/favicon.png"
;extraScripts[] = "/media/scripts/extra1.js"
;extraScripts[] = "/media/scripts/extra2.js"
;extraStyles[] = "/media/scripts/extra.css"
2013-11-10 11:18:00 +01:00
[misc]
2013-10-19 13:38:20 +02:00
featuredPostMaxDays = 7
2014-06-20 18:03:13 +02:00
proxyThumbsInUpload = 0
2013-10-19 12:53:49 +02:00
debugQueries = 0
2014-05-14 20:27:19 +02:00
githubLink = http://github.com/rr-/szurubooru
2013-10-05 12:55:03 +02:00
2013-11-21 15:16:27 +01:00
[help]
title = Help
2013-12-05 23:17:01 +01:00
subTitles[help] = General help
2013-11-21 15:16:27 +01:00
subTitles[rules] = Rules
subTitles[privacy] = Privacy policy
paths[help] = ./data/help.md
paths[rules] = ./data/rules.md
paths[privacy] = ./data/privacy.md
2013-10-08 23:02:31 +02:00
[browsing]
2013-10-16 13:07:01 +02:00
usersPerPage = 8
2013-10-08 23:02:31 +02:00
postsPerPage = 20
2014-01-27 09:17:36 +01:00
logsPerPage = 250
2014-02-16 18:19:15 +01:00
tagsPerPage = 100
2014-03-10 16:14:00 +01:00
tagsRelated = 15
2014-05-20 19:20:07 +02:00
thumbnailWidth = 150
thumbnailHeight = 150
thumbnailStyle = outside
2013-10-22 00:17:06 +02:00
endlessScrollingDefault = 1
2013-11-25 12:07:50 +01:00
showPostTagTitlesDefault = 0
2013-12-05 22:19:21 +01:00
showDislikedPostsDefault = 1
2013-10-13 13:17:23 +02:00
maxSearchTokens = 4
2013-10-30 20:20:01 +01:00
maxRelatedPosts = 50
2013-10-08 23:02:31 +02:00
2014-05-07 21:39:41 +02:00
[tags]
minLength = 1
maxLength = 64
regex = "/^[()\[\]a-zA-Z0-9_.-]+$/i"
2014-05-06 11:28:24 +02:00
[posts]
maxSourceLength = 200
2013-10-17 22:57:32 +02:00
[comments]
minLength = 5
maxLength = 2000
2014-02-24 00:17:01 +01:00
commentsPerPage = 10
maxCommentsInList = 5
2014-05-26 12:30:23 +02:00
needEmailForCommenting = 0
[uploads]
needEmailForUploading = 1
2014-05-26 12:40:02 +02:00
logAnonymousUploadsNicknames = 1
allowAnonymousUploads = 1
2013-10-17 22:57:32 +02:00
2013-10-05 12:55:03 +02:00
[registration]
2013-10-16 19:38:59 +02:00
staffActivation = 0
2013-10-05 12:55:03 +02:00
passMinLength = 5
passRegex = "/^.+$/"
userNameMinLength = 3
2013-10-19 20:51:32 +02:00
userNameMaxLength = 20
2013-10-05 12:55:03 +02:00
userNameRegex = "/^[\w_-]+$/ui"
2013-10-16 18:07:23 +02:00
needEmailForRegistering = 1
2013-10-16 19:56:02 +02:00
confirmationEmailEnabled = 1
2013-11-16 19:24:33 +01:00
confirmationEmailSenderName = "{host} mailing system"
2013-10-16 19:56:02 +02:00
confirmationEmailSenderEmail = "noreply@{host}"
2013-11-16 19:24:33 +01:00
confirmationEmailSubject = "{host} - account activation"
2013-12-14 14:50:30 +01:00
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"
2013-11-16 19:24:33 +01:00
passwordResetEmailSenderName = "{host} mailing system"
passwordResetEmailSenderEmail = "noreply@{host}"
passwordResetEmailSubject = "{host} - password reset"
2013-12-14 14:50:30 +01:00
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"
2013-10-06 13:21:16 +02:00
[privileges]
2014-05-04 14:57:44 +02:00
registerAccount = anonymous
;registerAccount=nobody
2013-10-07 20:44:14 +02:00
listPosts = anonymous
2014-05-17 15:42:19 +02:00
listPosts.safe = anonymous
2013-10-07 23:17:33 +02:00
listPosts.sketchy = registered
listPosts.unsafe = registered
2014-03-03 20:59:48 +01:00
listPosts.hidden = moderator
2014-06-10 21:20:58 +02:00
;privilege to view post page, e.g. example.com/post/53
2013-10-13 12:28:16 +02:00
viewPost = anonymous
2014-05-17 15:42:19 +02:00
viewPost.safe = anonymous
2013-10-13 12:28:16 +02:00
viewPost.sketchy = registered
viewPost.unsafe = registered
2014-03-03 20:59:48 +01:00
viewPost.hidden = moderator
2014-06-10 21:20:58 +02:00
;privilege to download post file, e.g. example.com/8ca21cb48aaf6ba5d361e6bebebc8cfe/retrieve
;note that the hash cannot be guessed with basic url manipulation. giving
;anonymous access in this case is reasonable - it allows privileged users to
;share permalinks with unprivileged folks, also it allows to properly feature
;posts otherwise unavailable to unregistered people.
2014-06-10 21:12:14 +02:00
downloadPost = anonymous
downloadPost.safe = anonymous
downloadPost.sketchy = anonymous
downloadPost.unsafe = anonymous
downloadPost.hidden = moderator
2014-06-10 21:20:58 +02:00
2013-10-13 12:28:16 +02:00
retrievePost = anonymous
2013-10-12 14:53:47 +02:00
favoritePost = registered
2014-05-06 19:39:41 +02:00
addPost = registered
addPostSafety = registered
addPostTags = registered
2014-05-20 19:20:07 +02:00
addPostThumbnail = power-user
2014-05-06 19:39:41 +02:00
addPostSource = registered
addPostRelations = power-user
addPostContent = registered
editPost = registered
2013-10-13 12:28:16 +02:00
editPostSafety.own = registered
editPostSafety.all = moderator
2013-10-19 20:58:51 +02:00
editPostTags = registered
2014-05-20 19:20:07 +02:00
editPostThumbnail = moderator
2013-10-19 20:58:51 +02:00
editPostSource = moderator
2013-10-30 20:20:01 +01:00
editPostRelations.own = registered
editPostRelations.all = moderator
2014-05-06 15:49:02 +02:00
editPostContent = moderator
2014-05-06 19:39:41 +02:00
2014-02-20 18:44:51 +01:00
massTag.own = registered
massTag.all = power-user
2014-02-20 19:26:17 +01:00
hidePost = moderator
deletePost = moderator
2013-10-19 13:38:20 +02:00
featurePost = moderator
2013-11-10 12:23:59 +01:00
scorePost = registered
2013-11-17 14:52:46 +01:00
flagPost = registered
2013-10-15 00:41:04 +02:00
2013-10-14 10:22:53 +02:00
listUsers = registered
viewUser = registered
2013-10-20 19:19:52 +02:00
viewUserEmail.own = registered
2014-05-17 15:42:19 +02:00
viewUserEmail.all = admin
2014-05-17 15:00:30 +02:00
editUserPassword.own = registered
editUserPassword.all = admin
editUserEmail.own = registered
editUserEmail.all = admin
editUserEmailNoConfirm = admin
editUserAccessRank = admin
editUserName = moderator
2014-05-20 19:46:05 +02:00
editUserAvatar.own = registered
editUserAvatar.all = admin
2014-05-17 15:00:30 +02:00
editUserSettings.own = registered
2014-05-17 15:42:19 +02:00
editUserSettings.all = nobody
2013-10-15 00:41:04 +02:00
acceptUserRegistration = moderator
2013-10-15 13:14:48 +02:00
banUser.own = nobody
banUser.all = admin
deleteUser.own = registered
deleteUser.all = nobody
2013-11-17 14:52:46 +01:00
flagUser = registered
2013-10-15 00:41:04 +02:00
2013-10-12 20:00:30 +02:00
listComments = anonymous
2013-10-17 22:57:32 +02:00
addComment = registered
2013-10-19 20:13:46 +02:00
deleteComment.own = registered
2013-10-17 23:37:41 +02:00
deleteComment.all = moderator
2014-01-25 16:34:20 +01:00
editComment.own = registered
editComment.all = admin
2013-10-17 22:57:32 +02:00
2013-10-09 17:50:07 +02:00
listTags = anonymous
2013-10-20 00:31:22 +02:00
mergeTags = moderator
renameTags = moderator
2013-11-17 14:39:50 +01:00
listLogs = moderator
viewLog = moderator