-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.yml
155 lines (122 loc) · 4.06 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Your site's name.
sitename: "Hannover.pm"
siteslogan: "Perl Mongers - Perl user group Hanover, Deutschland"
# Application's name.
appname: "App::DancePage"
# The IP address that the Dancer app should bind to.
server: 0.0.0.0
# The port Dancer will listen to.
port: 80
# If set to true, runs the standalone webserver in the background.
daemon: 0
# If set to true, Dancer will look to X-Forwarded-Protocol and
# X-Forwarded-Host when constructing URLs.
behind_proxy: 0
# The default content type of outgoing content.
content_type: "text/html"
# Sets the default charset of outgoing content.
charset: "UTF-8"
# Sets the default charset of files with unknown extensions within the
# public folder.
default_mime_type: "application/data"
# Which template engine should be used.
template: "xslate"
# The name of the layout to use when rendering view.
layout: "main"
# If true, config will return an object instead of a hash reference.
strict_config: 0
# If true, use warnings will be in effect for all modules and scripts loaded
# by your Dancer application.
global_warnings: 1
# If set to true, prints a banner at the server start with information such
# as versions and the environment.
startup_info: 1
# If set to true, tells Dancer to consider all warnings as blocking errors.
warnings: 0
# If set to true, Dancer will render a detailed debug screen whenever an
# error is caught.
show_errors: 0
# If set to true, Dancer will display full stack traces when a warning or a
# die occurs.
traces: 0
# If set to true, Dancer will add an "X-Powered-By" header and also append
# the Dancer version to the "Server" header.
server_tokens: 1
# This setting lets you specify a template to be used in case of runtime
# error.
#error_template: "error"
# If set to true, Dancer will reload the route handlers whenever the file
# where they are defined is changed.
auto_reload: 0
# Which session engine should be used.
session: "YAML"
# The session expiry time in seconds, or as e.g. "2 hours".
session_expires: "2 hours"
# The name of the cookie to store the session ID in.
session_name: "sid"
# If the session_secure setting is set to a true value, the cookie will be
# marked as secure, meaning it should only be sent over HTTPS connections.
session_secure: 0
# This setting defaults to 1 and instructs the session cookie to be created
# with the HttpOnly option active, meaning that JavaScript will not be able
# to access to its value.
session_is_http_only: 0
# Allows you to set the domain property on the cookie, which will override
# the default.
#session_domain: ".example.com"
# For simple pages where you"re not doing anything dynamic, but still want
# to use the template engine to provide headers etc, you can use the
# auto_page feature to avoid the need to create a route for each page.
auto_page: 0
# Enables route caching.
route_cache: 1
# Maximum size of route cache in bytes.
route_cache_size_limit: 31457280
# Maximum number of routes to cache.
route_cache_path_limit: 100
# Configure template engines.
engines:
xslate:
cache: 1
cache_dir: "views/cache"
input_layer: ":utf8"
verbose: 0
extension: "tx"
syntax: "Kolon"
type: "html"
line_start: "|%"
tag_start: "<%"
tag_end: "%>"
module:
- Text::Xslate::Bridge::MultiMarkdown
# Configure plugins.
plugins:
DBIC:
default:
dsn: dbi:SQLite:dbname=dancepage.db
schema_class: App::DancePage::Schema
options:
RaiseError: 1
sqlite_allow_multiple_statements: 1
sqlite_unicode: 1
Auth::Extensible:
no_default_pages: 1
disable_roles: 0
login_page: /login
logout_page: /logout
denied_page: /login/denied
realms:
users:
provider: DBIC
db_connection_name: default
users_resultset: User
username_column: username
password_column: password
roles_relationship: roles
role_column: role
password_check: check_password
# Disable when Dancer::Plugin::Auth::Extensible is able to NOT register
# /login, /login/denied, /logout routes.
auth_route_fix: 1
# Disable registration.
disable_register: 1