Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / development.ini @ 79fa773b

History | View | Annotate | Download (4.37 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
lang=fr
28
use_kerberos=False
29
help_link=http://foo.bar/help
30

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

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

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

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

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

    
55
; Emplacement des applications (rrdgraph, Nagios, ...)
56
; sur les serveurs distants.
57
app_path.nagios = /nagios/
58

    
59
; Schéma ("protocol") à utiliser pour se connecter
60
; à l'application. En général : http ou https.
61
; Par défaut : http
62
app_scheme.nagios = http
63

    
64
; Port de connexion au serveur distant hébergeant
65
; l'application.
66
; Par défaut : 80
67
app_port.nagios = 80
68

    
69

    
70
full_stack = true
71
cache_dir = %(here)s/data
72
beaker.session.key = vigiboard
73
beaker.session.secret = vigilo
74
sa_auth.cookie_secret = vigilo
75

    
76
# If you'd like to fine-tune the individual locations of the cache data dirs
77
# for the Cache data, or the Session saves, un-comment the desired settings
78
# here:
79
#beaker.cache.data_dir = %(here)s/data/cache
80
#beaker.session.data_dir = %(here)s/data/sessions
81

    
82
# DB - sqlite fails, not postgresql ready, use mysql for now
83
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo
84
sqlalchemy.echo = false
85
sqlalchemy.echo_pool = false
86
sqlalchemy.pool_recycle = 3600
87

    
88
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
89
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
90
# execute malicious code after an exception is raised.
91
#set debug = false
92

    
93
# Logging configuration
94
# Add additional loggers, handlers, formatters here
95
# Uses python's logging config file format
96
# http://docs.python.org/lib/logging-config-fileformat.html
97

    
98
[loggers]
99
keys = root, vigiboard, sqlalchemy, auth
100

    
101
[handlers]
102
keys = console,sql_log,root_log,vigiboard_log,auth_log
103

    
104
[formatters]
105
keys = generic
106

    
107
# If you create additional loggers, add them as a key to [loggers]
108
[logger_root]
109
level = INFO
110
handlers = console
111

    
112
[logger_vigiboard]
113
level = INFO
114
handlers = vigiboard_log
115
qualname = vigiboard
116

    
117
[logger_sqlalchemy]
118
level = INFO
119
handlers = console
120
#sql_log
121
qualname = sqlalchemy.engine
122

    
123
# A logger for authentication, identification and authorization -- this is
124
# repoze.who and repoze.what:
125
[logger_auth]
126
level = WARN
127
handlers = auth_log
128
qualname = auth
129

    
130
# If you create additional handlers, add them as a key to [handlers]
131
[handler_console]
132
class = StreamHandler
133
args = (sys.stderr,)
134
level = NOTSET
135
formatter = generic
136

    
137
[handler_sql_log]
138
class = FileHandler
139
args = ('log/sql.log','a')
140
level = INFO
141
formatter = generic
142

    
143
[handler_root_log]
144
class = FileHandler
145
args = ('log/root.log','a')
146
level = INFO
147
formatter = generic
148

    
149
[handler_vigiboard_log]
150
class = FileHandler
151
args = ('log/vigiboard.log','a')
152
level = INFO
153
formatter = generic
154

    
155
[handler_auth_log]
156
class = FileHandler
157
args = ('log/auth.log','a')
158
level = INFO
159
formatter = generic
160

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