Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / development.ini @ 2cbf5f32

History | View | Annotate | Download (4.03 KB)

1
#
2
# vigiboard - Pylons development environment configuration
3
#
4
# The %(here)s variable will be replaced with the parent directory of this file
5
#
6
# This file is for deployment specific config options -- other configuration
7
# that is always required for the app is done in the config directory, 
8
# and generally should not be modified by end users. 
9

    
10
[DEFAULT]
11
debug = true
12
# Uncomment and replace with the address which should receive any error reports
13
#email_to = you@yourdomain.com
14
smtp_server = localhost
15
error_email_from = paste@localhost
16

    
17
[server:main]
18
use = egg:Paste#http
19
host = 0.0.0.0 
20
port = 8085
21

    
22
[app:main]
23
use = egg:vigiboard
24

    
25
db_basename= vigilo_
26
password_hashing_function=md5
27
;password_hashing_function=
28
lang=fr
29
use_kerberos=False
30
help_link=http://foo.bar/help
31

    
32
; Nombre d'événements par page.
33
vigiboard_items_per_page = 15
34

    
35
; URL vers laquelle le logo de Vigilo redirige.
36
logo_link = /
37

    
38
; Ordre de tri pour la priorité des événements.
39
; - Utiliser "asc" si la priorité est inversement proportionnelle à sa
40
;   valeur (ie: plus le nombre est bas, plus la priorité est élevée).
41
; - Utiliser "desc" si la priorité est proportionnelle à sa valeur
42
;   (ie: plus le nombre est élevé, plus la priorité est élevée).
43
; NE PAS METTRE DE GUILLEMETS/APOSTROPHES AUTOUR DE LA VALEUR.
44
vigiboard_priority_order = asc
45

    
46
; Default font size, must be a valid size as per the CSS 2.1 specification.
47
; See http://www.w3.org/TR/CSS21/fonts.html#font-size-props
48
vigiboard_font.size = 10px
49

    
50
; Indique si le tri des événements se fait d'abord sur l'état Nagios
51
; puis l'horodatage de l'événement, ou bien l'inverse.
52
; Dans tous les cas, d'autres critères de tri interviennent avant
53
; (état d'acquittement et priorité ITIL).
54
state_first = True
55

    
56
full_stack = true
57
cache_dir = %(here)s/data
58
beaker.session.key = vigiboard
59
beaker.session.secret = vigilo
60
sa_auth.cookie_secret = vigilo
61

    
62
# If you'd like to fine-tune the individual locations of the cache data dirs
63
# for the Cache data, or the Session saves, un-comment the desired settings
64
# here:
65
#beaker.cache.data_dir = %(here)s/data/cache
66
#beaker.session.data_dir = %(here)s/data/sessions
67

    
68
# DB - sqlite fails, not postgresql ready, use mysql for now
69
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo
70
sqlalchemy.echo = false
71
sqlalchemy.echo_pool = false
72
sqlalchemy.pool_recycle = 3600
73

    
74
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
75
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
76
# execute malicious code after an exception is raised.
77
#set debug = false
78

    
79
# Logging configuration
80
# Add additional loggers, handlers, formatters here
81
# Uses python's logging config file format
82
# http://docs.python.org/lib/logging-config-fileformat.html
83

    
84
[loggers]
85
keys = root, vigiboard, sqlalchemy, auth
86

    
87
[handlers]
88
keys = console,sql_log,root_log,vigiboard_log,auth_log
89

    
90
[formatters]
91
keys = generic
92

    
93
# If you create additional loggers, add them as a key to [loggers]
94
[logger_root]
95
level = INFO
96
handlers = console
97

    
98
[logger_vigiboard]
99
level = INFO
100
handlers = vigiboard_log
101
qualname = vigiboard
102

    
103
[logger_sqlalchemy]
104
level = INFO
105
handlers = console
106
#sql_log
107
qualname = sqlalchemy.engine
108

    
109
# A logger for authentication, identification and authorization -- this is
110
# repoze.who and repoze.what:
111
[logger_auth]
112
level = WARN
113
handlers = auth_log
114
qualname = auth
115

    
116
# If you create additional handlers, add them as a key to [handlers]
117
[handler_console]
118
class = StreamHandler
119
args = (sys.stderr,)
120
level = NOTSET
121
formatter = generic
122

    
123
[handler_sql_log]
124
class = FileHandler
125
args = ('log/sql.log','a')
126
level = INFO
127
formatter = generic
128

    
129
[handler_root_log]
130
class = FileHandler
131
args = ('log/root.log','a')
132
level = INFO
133
formatter = generic
134

    
135
[handler_vigiboard_log]
136
class = FileHandler
137
args = ('log/vigiboard.log','a')
138
level = INFO
139
formatter = generic
140

    
141
[handler_auth_log]
142
class = FileHandler
143
args = ('log/auth.log','a')
144
level = INFO
145
formatter = generic
146

    
147
# If you create additional formatters, add them as a key to [formatters]
148
[formatter_generic]
149
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
150
datefmt = %H:%M:%S