-
Notifications
You must be signed in to change notification settings - Fork 0
/
pulma.conf.mongo.example
108 lines (90 loc) · 2.87 KB
/
pulma.conf.mongo.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
{
# Mapper configuration ##########################################################
'map' => {
'file' => [ '/opt/pulma/mapping' ],
'root' => ''
},
# Main data module configuration ################################################
'data' => {
'type' => 'mongodb',
'data' => {
'username' => 'pulma',
'password' => 'pulma',
'host' => 'mongodb://localhost:27017',
'db_name' => 'admin',
'database' => 'data'
},
'cache' => 'memory' # Though memory cache won't be too effective
},
# Authorization module configuration ############################################
'auth' => {
'type' => 'mongodb',
'data' => {
'username' => 'pulma',
'password' => 'pulma',
'host' => 'mongodb://localhost:27017',
'db_name' => 'admin',
'database' => 'auth'
},
'cache' => 'memory'
},
# Logger module configuration ###################################################
'logger' => {
'type' => 'mongodb',
'data' => {
'username' => 'pulma',
'password' => 'pulma',
'host' => 'mongodb://localhost:27017',
'db_name' => 'admin',
'database' => 'logger'
},
'cache' => 'memory'
},
########################## Pulma server configuration ##########################
# System log configuration ######################################################
'syslog' => {
# syslog options
'log_level' => -1, # 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'
}
}