2016-03-13 20:35:51 +00:00
|
|
|
; Database configuration according to https://laravel.com/docs/5.2/database#introduction
|
2016-07-26 17:29:53 +00:00
|
|
|
; Put some here in advance, uncomment the one you need.
|
2015-05-11 22:20:19 +00:00
|
|
|
[database]
|
2016-07-29 19:31:36 +00:00
|
|
|
; ; mysql
|
|
|
|
; driver = mysql
|
|
|
|
; host = localhost
|
|
|
|
; port = 3306
|
|
|
|
; username = sakura
|
|
|
|
; password = password
|
|
|
|
; prefix = sakura_
|
|
|
|
; database = sakura-development
|
|
|
|
; charset = utf8
|
|
|
|
; collation = utf8_unicode_ci
|
|
|
|
|
|
|
|
; ; sqlite
|
|
|
|
; driver = sqlite
|
2016-11-06 22:19:35 +00:00
|
|
|
; database = sakura.db3
|
2016-08-04 21:24:08 +00:00
|
|
|
; ; Although the option exists, setting a table prefix for sqlite breaks some migration related things.
|
|
|
|
; prefix =
|
2016-07-29 19:31:36 +00:00
|
|
|
|
|
|
|
; ; postgres
|
|
|
|
; driver = pgsql
|
|
|
|
; host = localhost
|
|
|
|
; port = 5432
|
|
|
|
; username = sakura
|
|
|
|
; password = password
|
|
|
|
; prefix = sakura_
|
|
|
|
; database = sakura-development
|
|
|
|
; charset = utf8
|
|
|
|
; schema = public
|
2016-03-13 20:35:51 +00:00
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; General site settings
|
|
|
|
[general]
|
|
|
|
; Name of the site
|
|
|
|
name = Sakura
|
2015-05-11 22:20:19 +00:00
|
|
|
|
2016-07-29 19:31:36 +00:00
|
|
|
; Logo of the site
|
|
|
|
logo =
|
|
|
|
|
2016-07-27 15:37:44 +00:00
|
|
|
; Description of the site
|
|
|
|
description = Test site
|
|
|
|
|
2016-11-08 19:56:37 +00:00
|
|
|
; Design used by the site, must be a folder in resources/views/
|
2016-07-26 17:29:53 +00:00
|
|
|
design = yuuno
|
2015-05-11 22:20:19 +00:00
|
|
|
|
2016-12-21 19:55:17 +00:00
|
|
|
; Categories displayed on the front page, comma separated
|
|
|
|
homepage-news = 1
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; Cover to be used when no other one is specified
|
|
|
|
cover =
|
2015-05-11 22:20:19 +00:00
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Close the site for maintenance
|
|
|
|
maintenance = false
|
2016-03-13 20:35:51 +00:00
|
|
|
|
2016-08-04 21:24:08 +00:00
|
|
|
; Date formatting string
|
|
|
|
date_format = D Y-m-d H:i:s T
|
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Cookie settings
|
|
|
|
[cookie]
|
|
|
|
prefix = sakura_
|
|
|
|
|
|
|
|
; Performance settings
|
|
|
|
[performance]
|
|
|
|
; Compress output using gzip, recommended to turn this off while debugging
|
|
|
|
compression = true
|
2015-05-11 22:20:19 +00:00
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Cache directory
|
2016-12-06 13:45:49 +00:00
|
|
|
cache_dir = store/cache/
|
2016-02-20 11:20:58 +00:00
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Enable template caching
|
|
|
|
template_cache = true
|
2016-02-20 11:20:58 +00:00
|
|
|
|
2017-03-24 17:10:44 +00:00
|
|
|
; Enable forum caching
|
|
|
|
forum_cache = true
|
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Development specific settings
|
2015-12-04 14:19:10 +00:00
|
|
|
[dev]
|
2015-12-27 04:37:57 +00:00
|
|
|
; Show detailed error logs in browser
|
2016-07-26 17:29:53 +00:00
|
|
|
show_errors = false
|
2015-12-27 04:37:57 +00:00
|
|
|
|
2016-07-30 13:48:09 +00:00
|
|
|
; Enable twig (the templating engine) debug mode
|
|
|
|
twig_debug = false
|
|
|
|
|
2016-03-25 01:31:57 +00:00
|
|
|
; Host for the mahou serve command
|
|
|
|
host = localhost:8000
|
2016-07-26 17:29:53 +00:00
|
|
|
|
2016-08-05 19:13:55 +00:00
|
|
|
; Host for dumping exceptions, sends the exception as a json object in a raw post request. Leave empty to disable.
|
|
|
|
report_host =
|
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Mailing settings
|
|
|
|
[mail]
|
|
|
|
contact_address = sakura@localhost
|
2016-08-10 16:10:57 +00:00
|
|
|
signature = "Sakura | http://localhost/"
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; SMTP settings
|
|
|
|
[mail.smtp]
|
|
|
|
auth = false
|
|
|
|
from = sakura-noreply@localhost
|
|
|
|
name = Sakura
|
|
|
|
reply_to = sakura-admin@localhost
|
|
|
|
reply_name = Administrator
|
|
|
|
username =
|
|
|
|
password =
|
|
|
|
server =
|
|
|
|
port = 25
|
2016-07-29 19:31:36 +00:00
|
|
|
secure = tls
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; File settings
|
|
|
|
[file]
|
2016-12-06 13:45:49 +00:00
|
|
|
uploads_dir = store/uploads/
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; Avatar requirements
|
|
|
|
[file.avatar]
|
|
|
|
max_file_size = 2097152
|
|
|
|
max_height = 512
|
|
|
|
max_width = 512
|
|
|
|
|
|
|
|
; Background requirements
|
|
|
|
[file.background]
|
|
|
|
max_file_size = 5242880
|
|
|
|
max_height = 1440
|
|
|
|
max_width = 2560
|
|
|
|
|
2016-09-13 22:05:03 +00:00
|
|
|
; Header requirements
|
|
|
|
[file.header]
|
2016-07-26 17:29:53 +00:00
|
|
|
max_file_size = 2097152
|
|
|
|
max_height = 500
|
|
|
|
max_width = 2048
|
|
|
|
|
|
|
|
; User settings
|
|
|
|
[user]
|
2016-09-13 22:05:03 +00:00
|
|
|
; Default avatar, background and header (relative to public/)
|
2016-07-29 19:31:36 +00:00
|
|
|
avatar_none = images/%tplname%-none.png
|
2016-09-13 22:05:03 +00:00
|
|
|
background_none = images/pixel.png
|
|
|
|
header_none = images/pixel.png
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; Username constraints
|
|
|
|
name_min = 3
|
|
|
|
name_max = 16
|
|
|
|
|
|
|
|
; Disable registration, just in case
|
|
|
|
disable_registration = false
|
|
|
|
|
|
|
|
; Require the user to click a link in an e-mail sent to them
|
|
|
|
require_activation = true
|
|
|
|
|
|
|
|
; Minimum entropy value a password needs to have
|
|
|
|
pass_min_entropy = 1
|
|
|
|
|
|
|
|
; How long a username should be reserved in days
|
|
|
|
name_reserve = 90
|
|
|
|
|
|
|
|
; How long a user should be inactive till another person can use their name
|
|
|
|
name_takeover = 365
|
|
|
|
|
2016-08-02 20:35:12 +00:00
|
|
|
; Max length of a signature
|
|
|
|
signature_max = 500
|
|
|
|
|
|
|
|
; Max length of a userpage
|
|
|
|
page_max = 65535
|
|
|
|
|
2016-09-19 15:33:52 +00:00
|
|
|
; After how long last listened should be updated
|
|
|
|
music_update = 10
|
|
|
|
|
2016-07-26 17:29:53 +00:00
|
|
|
; Premium settings
|
|
|
|
[premium]
|
|
|
|
max_months_at_once = 24
|
|
|
|
price_per_month = 2.00
|
|
|
|
price_unit = EUR
|
|
|
|
|
|
|
|
; Paypal settings
|
|
|
|
[paypal]
|
|
|
|
mode = sandbox
|
|
|
|
client_id =
|
|
|
|
secret_id =
|
|
|
|
|
2016-07-30 13:48:09 +00:00
|
|
|
; Ranks ids, these ranks are used by automated procedures in the backend
|
|
|
|
; If you're using the setup command in mahou these are already set correctly for you!
|
2016-07-26 17:29:53 +00:00
|
|
|
[rank]
|
2016-12-07 15:33:26 +00:00
|
|
|
regular = 1
|
|
|
|
mod = 2
|
|
|
|
admin = 3
|
|
|
|
bot = 4
|
|
|
|
premium = 5
|
|
|
|
alumni = 6
|
|
|
|
banned = 7
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; Forum settings
|
|
|
|
[forum]
|
|
|
|
max_post_length = 60000
|
|
|
|
min_post_length = 1
|
|
|
|
max_title_length = 128
|
|
|
|
min_title_length = 4
|
|
|
|
|
|
|
|
; Id of the trash forum
|
2016-07-30 13:48:09 +00:00
|
|
|
; See second comment of the ranks category
|
|
|
|
trash = 4
|
2016-07-26 17:29:53 +00:00
|
|
|
|
|
|
|
; Comment settings
|
|
|
|
[comments]
|
2016-08-06 14:10:18 +00:00
|
|
|
max_length = 500
|
2016-07-26 17:29:53 +00:00
|
|
|
min_length = 1
|
2016-07-31 01:32:37 +00:00
|
|
|
|
|
|
|
; Content for the contact page, the variables function like a normal associative array
|
|
|
|
[contact]
|
2016-12-09 22:28:25 +00:00
|
|
|
mail['Administrator'] = me@flash.moe
|
2016-07-31 01:32:37 +00:00
|
|
|
|
2016-07-31 01:38:54 +00:00
|
|
|
twit['smugwave'] = "Sakura's main developer"
|
2016-07-31 01:32:37 +00:00
|
|
|
|
|
|
|
repo['Sakura'] = https://github.com/flashwave/sakura
|
2016-08-10 16:10:57 +00:00
|
|
|
|
2016-12-09 22:28:25 +00:00
|
|
|
; Status settings
|
|
|
|
[status]
|
2016-12-10 22:36:24 +00:00
|
|
|
; Format:
|
|
|
|
; check['display name'] = "address/port/protocol"
|
|
|
|
; protocol only really matters if you're pinging to http or https
|
|
|
|
; in which case it should be set to the respective value
|
2016-12-09 22:28:25 +00:00
|
|
|
check['flash.moe http'] = "flash.moe/80/http"
|
|
|
|
check['flash.moe https'] = "flash.moe/443/https"
|
|
|
|
|
2016-09-19 15:33:52 +00:00
|
|
|
; LastFM settings
|
|
|
|
[lastfm]
|
|
|
|
api_key =
|