-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathperlpro_web.conf
61 lines (53 loc) · 1.47 KB
/
perlpro_web.conf
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
name PerlPro::Web
default_model DB
default_view Kolon
<model DB>
<connect_info>
pg_enable_utf8 1
quote_char "\""
name_sep "."
on_connect_do "SET search_path = 'perlpro'"
on_connect_do "SET lc_monetary = 'pt_BR.UTF-8'"
</connect_info>
</model>
<view Kolon>
cache_dir __path_to(tmp,xslate,cache/)__
path [ __path_to(root,src)__ ]
encode_body 0
syntax "Kolon"
template_extension ".tx"
suffix ".tx"
# Avoid messing up with global context. Unfortunately, there's no way to make
# it unaccessible in the templates, but at least we can make it hard to be
# accessed.
catalyst_var "_Catalyst_Context"
</view>
<view JSON>
expose_stash json_data
</view>
<plugin Session>
storage __path_to(tmp,session,data)__
</plugin>
<plugin Static::Simple>
ignore_extensions = [ tx ]
</plugin>
<authentication>
default_realm "user"
use_session 1
<realms>
<user>
<credential>
class "Password"
password_field "password"
password_type "self_check"
</credential>
<store>
class "DBIx::Class"
user_model "DB::User"
use_userdata_from_session 1
role_relation "roles"
role_field "role"
</store>
</user_account>
</realms>
</authentication>