-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml-example
83 lines (74 loc) · 2.16 KB
/
config.yml-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This is the main configuration file of your Dancer2 app
# env-related settings should go to environments/$env.yml
# all the settings in this file will be loaded at Dancer's startup.
# Your application's name
appname: "Brass"
# The default layout to use for your application (located in
# views/layouts/main.tt)
layout: "main"
# when the charset is set to UTF-8 Dancer2 will handle for you
# all the magic of encoding and decoding. You should not care
# about unicode within your app when this setting is set (recommended).
charset: "UTF-8"
# template engine
# simple: default and very basic template engine
# template_toolkit: TT
template: "template_toolkit"
session: "YAML"
brass:
file_upload: "/var/lib/brass"
tex: "/var/lib/brass/tex"
company: 'Ctrl O'
email:
from: '[email protected]'
engines:
session:
YAML:
session_dir: "/tmp/dancer-sessions"
is_secure: 1 # Comment out or remove if using HTTP
cookie_duration: 3600
plugins:
DBIC:
default:
dsn: dbi:mysql:database=brass
schema_class: Brass::Schema
user: brass
password: XXX
options:
RaiseError: 1
PrintError: 1
mysql_enable_utf8: 1
quote_names: 1
doc:
dsn: dbi:mysql:dbname=docdb;
schema_class: Brass::DocSchema
user: brass
pass: XXX
options:
RaiseError: 1
PrintError: 1
mysql_enable_utf8: 1
Auth::Extensible:
mailer:
module: Mail::Message # Email module to use
options: # Options for module
via: sendmail # Options passed to $msg->send
mail_from: '"Ctrl O Brass" <[email protected]>' # From email address
reset_password_handler: 1
record_lastlogin: 1
no_login_handler: 1
realms:
users:
provider: DBIC
user_as_object: 1
users_table: user
roles_table: permission
user_roles_table: user_permission
roles_role_column: name
users_lastlogin_column: lastlogin
users_pwresetcode_column: pwresetcode
users_pwchanged_column: pwchanged
password_expiry_days: 90
roles_key: permission
user_valid_conditions:
deleted: ~