szurubooru/config.yaml.dist

115 lines
4.2 KiB
Text
Raw Normal View History

# 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.
name: szurubooru
debug: 0 # generate source maps for JS debugging?
show_sql: 0 # show sql in server logs?
transpile: 1 # generate bigger JS to support older browsers?
2016-04-06 20:38:45 +02:00
secret: change
api_url: # where frontend connects to, example: http://api.example.com/
2016-04-09 21:41:10 +02:00
base_url: # used to form links to frontend, example: http://example.com/
data_url: # used to form links to posts and avatars, example: http://example.com/data/
data_dir: # absolute path for posts and avatars storage, example: /srv/www/booru/client/public/data/
2016-04-06 20:38:45 +02:00
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
2016-04-06 20:38:45 +02:00
database:
schema: postgres
host: # example: localhost
port: # example: 5432
user: # example: szuru
pass: # example: dog
name: # example: szuru
# used to send password reminders
smtp:
host: # example: localhost
port: # example: 25
user: # example: bot
pass: # example: groovy123
limits:
users_per_page: 20
posts_per_page: 40
max_comment_length: 5000
2016-06-18 10:37:11 +02:00
tag_name_regex: ^[a-zA-Z0-9_:()][a-zA-Z0-9_()-]*$
tag_category_name_regex: ^.{1,}$
2016-04-06 20:38:45 +02:00
2016-05-08 16:59:25 +02:00
default_rank: regular
2016-04-06 20:38:45 +02:00
# don't change these, unless you want to annoy people. if you do customize
# them though, make sure to update the instructions in the registration form
# template as well.
password_regex: '^.{5,}$'
user_name_regex: '^[a-zA-Z0-9_-]{1,32}$'
privileges:
2016-04-21 19:25:38 +02:00
'users:create': anonymous
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
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
'posts:view': 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
'posts:favorite': regular
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
'tags:list': regular # note: will be available as data_url/tags.json anyway
2016-04-21 19:25:38 +02:00
'tags:view': anonymous
2016-05-08 16:59:25 +02:00
'tags:masstag': power
'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
'tag_categories:list': anonymous # note: will be available as data_url/tags.json anyway
'tag_categories:view': anonymous
2016-05-08 16:59:25 +02:00
'tag_categories:delete': moderator
'tag_categories:set_default': moderator
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