-
Notifications
You must be signed in to change notification settings - Fork 3
/
pulma.conf.localdb.example
127 lines (109 loc) · 3.3 KB
/
pulma.conf.localdb.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
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
{
# Mapper configuration ##########################################################
'map' => {
# one can specify either a single mapping file or an array of such files
'file' => '/opt/pulma/mapping',
'root' => ''
},
# Data module configuration #####################################################
'data' => {
'type' => 'localdb',
'failsafe' => 1,
'data' => {
'driver' => 'SQLite',
'dsn' => '/opt/pulma/usr/db/data.db',
'user' => '',
'passwd' => '',
'init' => [
{ 'method' => 'sqlite_enable_load_extension',
'args' => [ '1' ] },
[ 'select load_extension(?)',
'/usr/lib64/sqlite3/pcre.so' ]
]
},
'cache' => 'none'
},
# Authorization module configuration ############################################
'auth' => {
'type' => 'localdb',
'failsafe' => 1,
'data' => {
'driver' => 'SQLite',
'dsn' => '/opt/pulma/usr/db/auth.db',
'user' => '',
'passwd' => '',
'init' => [
{ 'method' => 'sqlite_enable_load_extension',
'args' => [ '1' ] },
[ 'select load_extension(?)',
'/usr/lib64/sqlite3/pcre.so' ]
]
},
'cache' => 'none'
},
# Logger module configuration ###################################################
'logger' => {
'type' => 'localdb',
'failsafe' => 1,
'data' => {
'driver' => 'SQLite',
'dsn' => '/opt/pulma/usr/db/logger.db',
'user' => '',
'passwd' => '',
'init' => [
{ 'method' => 'sqlite_enable_load_extension',
'args' => [ '1' ] },
[ 'select load_extension(?)',
'/usr/lib64/sqlite3/pcre.so' ]
]
},
'cache' => 'memory'
},
########################## Pulma server configuration ##########################
# System log configuration ######################################################
'syslog' => {
# syslog options
'log_level' => 3, # use -1 (or any other negative number) to prevent
# write to syslog
'syslog_facility' => 'daemon',
'syslog_ident' => 'pulma',
'syslog_logopt' => 'pid|cons|nofatal'
},
# external logging. one can specify an anonymous function or name of an
# external function in form of 'ModuleName/function/argument1/argument2/...'
# for external function with arguments see documentation on Pulma::Service::Log
# module for important details
# 'external_log' => sub {},
# 'external_log' => 'Module/function',
# Templates engine configuration ################################################
# location of system templates
'templates' => {
# location of web pages templates
'path' => '/opt/pulma/usr/templates/',
# path to cached web pages
'cache' => '/opt/pulma/var/cache/pulma/'
},
# FastCGI server configuration ##################################################
'fcgi' => {
# process manager settings
'proc_manager' => {
n_processes => 3,
start_delay => 0,
die_timeout => 5,
pm_title => 'pulma'
},
# binding
'socket_path' => ':9000',
# queue length
'listen_queue' => 5,
# location of PID file
'pid_file' => '/opt/pulma/var/run/pulma/pulma.pid',
# chroot directory
# 'chroot' => '/opt/pulma/',
# user and group to become after server start
'user' => '_nginx',
'group' => '_nginx',
# id of the current pulma node
'nodeid' => 'pulma01'
}
}