-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
74 lines (66 loc) · 1.9 KB
/
config.yml
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
# 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: "DancerBlog"
# The default layout to use for your application (located in
# views/layouts/main.tt)
layout: "main"
session: Simple
show_errors: 0
# 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"
plugins:
DBIC:
default:
dsn: dbi:SQLite:db/dancer_blog.db
schema_class: DancerBlog::Schema
Auth::Extensible:
user_home_page: '/blogs'
exit_page: '/blogs'
login_page_handler: 'DancerBlog::login_page'
realms:
users:
provider: 'DBIC'
disable_roles: 1
users_resultset: User
users_username_column: userid
users_password_check: check_password
CSRF:
session_key_name: 'plugin.csrf'
# template engine
# simple: default and very basic template engine
# template_toolkit: TT
template: "template_toolkit"
engines:
template:
template_toolkit:
start_tag: '<%'
end_tag: '%>'
session:
Simple:
cookie_name: dblog.session
cookie_duration: '24 hours'
is_http_only: 1
# session engine
#
# Simple: in-memory session store - Dancer2::Session::Simple
# YAML: session stored in YAML files - Dancer2::Session::YAML
#
# Check out metacpan for other session storage options:
# https://metacpan.org/search?q=Dancer2%3A%3ASession&search_type=modules
#
# Default value for 'cookie_name' is 'dancer.session'. If you run multiple
# Dancer apps on the same host then you will need to make sure 'cookie_name'
# is different for each app.
#
#engines:
#
#engines:
# session:
# YAML:
# cookie_name: eshop.session
# is_secure: 1
# is_http_only: 1