Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / deployment / settings.ini @ f913c9d3

History | View | Annotate | Download (4.59 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 = false
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 = 80
21

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

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

    
31
; Délai de rafraîchissement (en secondes).
32
refresh_delay=30
33
; Indique si le rafraîchissement automatique
34
; est activé ou non par défaut.
35
refresh_enabled=True
36

    
37
; Nombre d'événements par page.
38
vigiboard_items_per_page = 15
39

    
40
; URL vers laquelle le logo de Vigilo redirige.
41
logo_link = /
42

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

    
51
; Taille par défaut du texte, doit être une taille valide
52
; au sens de la spécification de CSS 2.1.
53
; Cf. http://www.w3.org/TR/CSS21/fonts.html#font-size-props
54
vigiboard_font.size = 10px
55

    
56
; Indique si le tri des événements se fait d'abord sur l'état Nagios
57
; puis l'horodatage de l'événement, ou bien l'inverse.
58
; Dans tous les cas, d'autres critères de tri interviennent avant
59
; (état d'acquittement et priorité ITIL).
60
state_first = True
61

    
62
; Emplacement des applications (rrdgraph, Nagios, ...)
63
; sur les serveurs distants.
64
app_path.nagios = /nagios/
65

    
66
; Schéma ("protocol") à utiliser pour se connecter
67
; à l'application. En général : http ou https.
68
; Par défaut : http
69
app_scheme.nagios = http
70

    
71
; Port de connexion au serveur distant hébergeant
72
; l'application.
73
; Par défaut : 80
74
app_port.nagios = 80
75

    
76
full_stack = true
77
cache_dir = /var/cache/vigilo/sessions
78
beaker.session.key = vigiboard
79
beaker.session.secret = vigilo
80
sa_auth.cookie_secret = vigilo
81

    
82
; If you'd like to fine-tune the individual locations of the cache data dirs
83
; for the Cache data, or the Session saves, un-comment the desired settings
84
; here:
85
;beaker.cache.data_dir = %(here)s/data/cache
86
;beaker.session.data_dir = %(here)s/data/sessions
87

    
88
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo
89

    
90
; echo shouldn't be used together with the logging module.
91
sqlalchemy.echo = false
92
sqlalchemy.echo_pool = false
93
sqlalchemy.pool_recycle = 3600
94

    
95
base_url_filter.base_url=
96
set debug = false
97

    
98
; Logging configuration
99
; Add additional loggers, handlers, formatters here
100
; Uses python's logging config file format
101
; http://docs.python.org/lib/logging-config-fileformat.html
102

    
103
[loggers]
104
keys = root, vigiboard, sqlalchemy, auth
105

    
106
[handlers]
107
keys = console,sql_log,root_log,vigiboard_log,auth_log
108

    
109
[formatters]
110
keys = generic
111

    
112
; If you create additional loggers, add them as a key to [loggers]
113
[logger_root]
114
level = INFO
115
handlers = root_log
116

    
117
[logger_vigiboard]
118
level = INFO
119
handlers = vigiboard_log
120
qualname = vigiboard
121

    
122
[logger_sqlalchemy]
123
level = INFO
124
handlers = sql_log
125
qualname = sqlalchemy.engine
126

    
127
; A logger for authentication, identification and authorization -- this is
128
; repoze.who and repoze.what:
129
[logger_auth]
130
level = INFO
131
handlers = auth_log
132
qualname = auth
133

    
134
; If you create additional handlers, add them as a key to [handlers]
135
[handler_console]
136
class = StreamHandler
137
args = (sys.stderr,)
138
level = NOTSET
139
formatter = generic
140

    
141
[handler_sql_log]
142
class = handlers.TimedRotatingFileHandler
143
args = ('/var/log/vigilo/vigiboard/sql.log','D', 30, 12)
144
level = DEBUG
145
formatter = generic
146

    
147
[handler_root_log]
148
class = handlers.TimedRotatingFileHandler
149
args = ('/var/log/vigilo/vigiboard/root.log', 'D', 30, 12)
150
level = DEBUG
151
formatter = generic
152

    
153
[handler_vigiboard_log]
154
class = handlers.TimedRotatingFileHandler
155
args = ('/var/log/vigilo/vigiboard/vigiboard.log', 'D', 30, 12)
156
level = DEBUG
157
formatter = generic
158

    
159
[handler_auth_log]
160
class = handlers.TimedRotatingFileHandler
161
args = ('/var/log/vigilo/vigiboard/auth.log', 'D', 30, 12)
162
level = DEBUG
163
formatter = generic
164

    
165
; If you create additional formatters, add them as a key to [formatters]
166
[formatter_generic]
167
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
168
datefmt = %H:%M:%S
169