2016-04-10 11:31:41 +02:00
|
|
|
# rather than editing this file, it is strongly suggested to create config.yaml
|
2016-04-06 20:38:45 +02:00
|
|
|
# and override only what you need.
|
|
|
|
|
2018-07-12 05:30:13 +02:00
|
|
|
# shown in the website title and on the front page
|
|
|
|
name: szurubooru
|
2019-05-19 21:13:01 +02:00
|
|
|
# full url to the homepage of this szurubooru site, with no trailing slash
|
|
|
|
domain: # example: http://example.com
|
2019-09-04 23:58:26 +02:00
|
|
|
# used to salt the users' password hashes and generate filenames for static content
|
2018-07-12 05:30:13 +02:00
|
|
|
secret: change
|
2016-08-15 19:55:03 +02:00
|
|
|
|
2018-02-24 08:57:31 +01:00
|
|
|
# Delete thumbnails and source files on post delete
|
|
|
|
# Original functionality is no, to mitigate the impacts of admins going
|
|
|
|
# on unchecked post purges.
|
|
|
|
delete_source_files: no
|
|
|
|
|
2016-04-09 21:41:10 +02:00
|
|
|
thumbnails:
|
|
|
|
avatar_width: 300
|
|
|
|
avatar_height: 300
|
|
|
|
post_width: 300
|
|
|
|
post_height: 300
|
2016-04-06 22:34:21 +02:00
|
|
|
|
2020-04-03 21:32:25 +02:00
|
|
|
# settings used to download files from the web on behalf of the api users
|
|
|
|
user_agent:
|
|
|
|
max_dl_filesize: 25.0E+6 # maximum filesize limit in bytes
|
|
|
|
|
2020-03-08 02:43:20 +01:00
|
|
|
# automatically convert animated GIF uploads to video formats
|
2018-03-08 07:47:58 +01:00
|
|
|
convert:
|
|
|
|
gif:
|
|
|
|
to_webm: false
|
|
|
|
to_mp4: false
|
|
|
|
|
2020-03-08 02:43:20 +01:00
|
|
|
# allow posts to be uploaded even if some image processing errors occur
|
|
|
|
allow_broken_uploads: false
|
|
|
|
|
2017-02-17 23:08:37 +01:00
|
|
|
# used to send password reset e-mails
|
2016-04-06 20:38:45 +02:00
|
|
|
smtp:
|
|
|
|
host: # example: localhost
|
|
|
|
port: # example: 25
|
|
|
|
user: # example: bot
|
|
|
|
pass: # example: groovy123
|
2019-05-19 21:13:01 +02:00
|
|
|
from: # example: noreply@example.com
|
2020-08-14 01:14:14 +02:00
|
|
|
# if host is left empty the password reset feature will be disabled,
|
|
|
|
# in which case it is recommended to fill contactEmail so that users
|
|
|
|
# know who to contact when they want to reset their password
|
2017-02-17 23:08:37 +01:00
|
|
|
|
2018-07-08 09:38:41 +02:00
|
|
|
contact_email: # example: bob@example.com. Meant for manual password reset procedures
|
2017-02-17 23:08:37 +01:00
|
|
|
|
2017-03-30 20:50:12 +02:00
|
|
|
enable_safety: yes
|
|
|
|
|
2016-09-04 02:02:51 +02:00
|
|
|
tag_name_regex: ^\S+$
|
2016-07-05 23:40:48 +02:00
|
|
|
tag_category_name_regex: ^[^\s%+#/]+$
|
2016-04-06 20:38:45 +02:00
|
|
|
|
2020-06-05 03:01:28 +02:00
|
|
|
pool_name_regex: ^\S+$
|
|
|
|
pool_category_name_regex: ^[^\s%+#/]+$
|
|
|
|
|
2017-03-30 19:41:30 +02:00
|
|
|
# don't make these more restrictive unless you want to annoy people; if you do
|
|
|
|
# customize them, make sure to update the instructions in the registration form
|
2016-04-06 20:38:45 +02:00
|
|
|
# template as well.
|
|
|
|
password_regex: '^.{5,}$'
|
|
|
|
user_name_regex: '^[a-zA-Z0-9_-]{1,32}$'
|
|
|
|
|
2020-08-14 01:14:14 +02:00
|
|
|
# webhooks to call when events occur (such as post/tag/user/etc. changes)
|
|
|
|
# the listed urls will be called with a HTTP POST request with a payload
|
|
|
|
# containing a snapshot resource as JSON. See doc/API.md for details
|
|
|
|
webhooks:
|
|
|
|
# - https://api.example.com/webhooks/
|
|
|
|
|
2017-02-17 23:08:37 +01:00
|
|
|
default_rank: regular
|
|
|
|
|
2016-04-06 20:38:45 +02:00
|
|
|
privileges:
|
2018-02-24 05:05:58 +01:00
|
|
|
'users:create:self': anonymous # Registration permission
|
|
|
|
'users:create:any': administrator
|
2016-05-08 16:59:25 +02:00
|
|
|
'users:list': regular
|
|
|
|
'users:view': regular
|
|
|
|
'users:edit:any:name': moderator
|
|
|
|
'users:edit:any:pass': moderator
|
|
|
|
'users:edit:any:email': moderator
|
|
|
|
'users:edit:any:avatar': moderator
|
|
|
|
'users:edit:any:rank': moderator
|
|
|
|
'users:edit:self:name': regular
|
|
|
|
'users:edit:self:pass': regular
|
|
|
|
'users:edit:self:email': regular
|
|
|
|
'users:edit:self:avatar': regular
|
|
|
|
'users:edit:self:rank': moderator # one can't promote themselves or anyone to upper rank than their own.
|
|
|
|
'users:delete:any': administrator
|
|
|
|
'users:delete:self': regular
|
2016-04-06 20:38:45 +02:00
|
|
|
|
2018-02-25 11:44:02 +01:00
|
|
|
'user_tokens:list:any': administrator
|
|
|
|
'user_tokens:list:self': regular
|
|
|
|
'user_tokens:create:any': administrator
|
|
|
|
'user_tokens:create:self': regular
|
|
|
|
'user_tokens:edit:any': administrator
|
|
|
|
'user_tokens:edit:self': regular
|
|
|
|
'user_tokens:delete:any': administrator
|
|
|
|
'user_tokens:delete:self': regular
|
|
|
|
|
2016-05-08 16:59:25 +02:00
|
|
|
'posts:create:anonymous': regular
|
|
|
|
'posts:create:identified': regular
|
2016-04-21 19:25:38 +02:00
|
|
|
'posts:list': anonymous
|
2016-12-26 14:21:26 +01:00
|
|
|
'posts:reverse_search': regular
|
2016-04-21 19:25:38 +02:00
|
|
|
'posts:view': anonymous
|
2017-08-24 14:36:32 +02:00
|
|
|
'posts:view:featured': anonymous
|
2016-05-08 16:59:25 +02:00
|
|
|
'posts:edit:content': power
|
|
|
|
'posts:edit:flags': regular
|
|
|
|
'posts:edit:notes': regular
|
|
|
|
'posts:edit:relations': regular
|
|
|
|
'posts:edit:safety': power
|
|
|
|
'posts:edit:source': regular
|
|
|
|
'posts:edit:tags': regular
|
|
|
|
'posts:edit:thumbnail': power
|
|
|
|
'posts:feature': moderator
|
|
|
|
'posts:delete': moderator
|
|
|
|
'posts:score': regular
|
2016-10-21 21:48:08 +02:00
|
|
|
'posts:merge': moderator
|
2016-05-08 16:59:25 +02:00
|
|
|
'posts:favorite': regular
|
2017-02-11 19:50:22 +01:00
|
|
|
'posts:bulk-edit:tags': power
|
2017-02-11 21:58:18 +01:00
|
|
|
'posts:bulk-edit:safety': power
|
2016-04-06 20:38:45 +02:00
|
|
|
|
2016-05-08 16:59:25 +02:00
|
|
|
'tags:create': regular
|
|
|
|
'tags:edit:names': power
|
|
|
|
'tags:edit:category': power
|
2016-06-21 18:06:35 +02:00
|
|
|
'tags:edit:description': power
|
2016-05-08 16:59:25 +02:00
|
|
|
'tags:edit:implications': power
|
|
|
|
'tags:edit:suggestions': power
|
2017-10-01 21:46:53 +02:00
|
|
|
'tags:list': regular
|
2016-04-21 19:25:38 +02:00
|
|
|
'tags:view': anonymous
|
2016-05-08 16:59:25 +02:00
|
|
|
'tags:merge': moderator
|
|
|
|
'tags:delete': moderator
|
2016-04-06 20:38:45 +02:00
|
|
|
|
2016-05-08 16:59:25 +02:00
|
|
|
'tag_categories:create': moderator
|
|
|
|
'tag_categories:edit:name': moderator
|
|
|
|
'tag_categories:edit:color': moderator
|
2020-09-19 22:54:26 +02:00
|
|
|
'tag_categories:edit:order': moderator
|
2017-10-01 21:46:53 +02:00
|
|
|
'tag_categories:list': anonymous
|
2016-04-19 15:45:12 +02:00
|
|
|
'tag_categories:view': anonymous
|
2016-05-08 16:59:25 +02:00
|
|
|
'tag_categories:delete': moderator
|
2016-05-22 18:49:38 +02:00
|
|
|
'tag_categories:set_default': moderator
|
2016-04-19 11:56:09 +02:00
|
|
|
|
2020-06-05 03:01:28 +02:00
|
|
|
'pools:create': regular
|
|
|
|
'pools:edit:names': power
|
|
|
|
'pools:edit:category': power
|
|
|
|
'pools:edit:description': power
|
|
|
|
'pools:edit:posts': power
|
|
|
|
'pools:list': regular
|
|
|
|
'pools:view': anonymous
|
|
|
|
'pools:merge': moderator
|
|
|
|
'pools:delete': moderator
|
|
|
|
|
|
|
|
'pool_categories:create': moderator
|
|
|
|
'pool_categories:edit:name': moderator
|
|
|
|
'pool_categories:edit:color': moderator
|
|
|
|
'pool_categories:list': anonymous
|
|
|
|
'pool_categories:view': anonymous
|
|
|
|
'pool_categories:delete': moderator
|
|
|
|
'pool_categories:set_default': moderator
|
2020-05-04 04:53:28 +02:00
|
|
|
|
2016-05-08 16:59:25 +02:00
|
|
|
'comments:create': regular
|
|
|
|
'comments:delete:any': moderator
|
|
|
|
'comments:delete:own': regular
|
|
|
|
'comments:edit:any': moderator
|
|
|
|
'comments:edit:own': regular
|
|
|
|
'comments:list': regular
|
|
|
|
'comments:view': regular
|
|
|
|
'comments:score': regular
|
2016-04-06 20:38:45 +02:00
|
|
|
|
2016-05-08 16:59:25 +02:00
|
|
|
'snapshots:list': power
|
2017-01-07 11:59:43 +01:00
|
|
|
|
|
|
|
'uploads:create': regular
|
2020-04-02 22:17:26 +02:00
|
|
|
'uploads:use_downloader': power
|
2018-07-12 05:30:13 +02:00
|
|
|
|
|
|
|
## ONLY SET THESE IF DEPLOYING OUTSIDE OF DOCKER
|
|
|
|
#debug: 0 # generate server logs?
|
|
|
|
#show_sql: 0 # show sql in server logs?
|
|
|
|
#data_url: /data/
|
|
|
|
#data_dir: /var/www/data
|
|
|
|
## usage: schema://user:password@host:port/database_name
|
|
|
|
## example: postgres://szuru:dog@localhost:5432/szuru_test
|
|
|
|
#database:
|