vigiboard / deployment / settings.ini @ 406ed350
History | View | Annotate | Download (5.26 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= |
26 |
;password_hashing_function=md5 |
27 |
lang=fr |
28 |
use_kerberos=False |
29 |
|
30 |
; Nombre d'événements par page. |
31 |
vigiboard_items_per_page = 15 |
32 |
|
33 |
; URL vers laquelle le logo de Vigilo redirige. |
34 |
vigiboard_links.logo = / |
35 |
|
36 |
; Ordre de tri pour la priorité des événements. |
37 |
; - Utiliser "asc" si la priorité est inversement proportionnelle à sa |
38 |
; valeur (ie: plus le nombre est bas, plus la priorité est élevée). |
39 |
; - Utiliser "desc" si la priorité est proportionnelle à sa valeur |
40 |
; (ie: plus le nombre est élevé, plus la priorité est élevée). |
41 |
; NE PAS METTRE DE GUILLEMETS/APOSTROPHES AUTOUR DE LA VALEUR. |
42 |
vigiboard_priority_order = asc |
43 |
|
44 |
; Default font size, must be a valid size as per the CSS 2.1 specification. |
45 |
; See http://www.w3.org/TR/CSS21/fonts.html#font-size-props |
46 |
vigiboard_font.size = 10px |
47 |
|
48 |
; Indique si le tri des événements se fait d'abord sur l'état Nagios |
49 |
; puis l'horodatage de l'événement, ou bien l'inverse. |
50 |
; Dans tous les cas, d'autres critères de tri interviennent avant |
51 |
; (état d'acquittement et priorité ITIL). |
52 |
state_first = True |
53 |
|
54 |
full_stack = true |
55 |
cache_dir = /tmp/vigilo/vigiboard/data |
56 |
beaker.session.key = vigiboard |
57 |
beaker.session.secret = somesecret |
58 |
sa_auth.cookie_secret = vigilo |
59 |
|
60 |
; If you'd like to fine-tune the individual locations of the cache data dirs |
61 |
; for the Cache data, or the Session saves, un-comment the desired settings |
62 |
; here: |
63 |
;beaker.cache.data_dir = %(here)s/data/cache |
64 |
;beaker.session.data_dir = %(here)s/data/sessions |
65 |
|
66 |
; DB - sqlite fails, not postgresql ready, use mysql for now |
67 |
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo |
68 |
|
69 |
; echo shouldn't be used together with the logging module. |
70 |
sqlalchemy.echo = false |
71 |
sqlalchemy.echo_pool = false |
72 |
sqlalchemy.pool_recycle = 3600 |
73 |
|
74 |
base_url_filter.base_url= |
75 |
; if you are using Mako and want to be able to reload |
76 |
; the mako template from disk during the development phase |
77 |
; you should say 'true' here |
78 |
; This option is only used for mako templating engine |
79 |
; WARNING: if you want to deploy your application using a zipped egg |
80 |
; (ie: if your application's setup.py defines zip-safe=True, then you |
81 |
; MUST put "false" for the production environment because there will |
82 |
; be no disk and real files to compare time with. |
83 |
; On the contrary if your application defines zip-safe=False and is |
84 |
; deployed in an unzipped manner, then you can leave this option to true |
85 |
templating.mako.reloadfromdisk = true |
86 |
|
87 |
; the compiled template dir is a directory that must be readable by your |
88 |
; webserver. It will be used to store the resulting templates once compiled |
89 |
; by the TemplateLookup system. |
90 |
; During development you generally don't need this option since paste's HTTP |
91 |
; server will have access to you development directories, but in production |
92 |
; you'll most certainly want to have apache or nginx to write in a directory |
93 |
; that does not contain any source code in any form for obvious security reasons. |
94 |
; |
95 |
;templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
96 |
|
97 |
; WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
98 |
; Debug mode will enable the interactive debugging tool, allowing ANYONE to |
99 |
; execute malicious code after an exception is raised. |
100 |
set debug = false |
101 |
|
102 |
; Logging configuration |
103 |
; Add additional loggers, handlers, formatters here |
104 |
; Uses python's logging config file format |
105 |
; http://docs.python.org/lib/logging-config-fileformat.html |
106 |
|
107 |
[loggers] |
108 |
keys = root, vigiboard, sqlalchemy, auth |
109 |
|
110 |
[handlers] |
111 |
keys = console,sql_log,root_log,vigiboard_log,auth_log |
112 |
|
113 |
[formatters] |
114 |
keys = generic |
115 |
|
116 |
; If you create additional loggers, add them as a key to [loggers] |
117 |
[logger_root] |
118 |
level = DEBUG |
119 |
handlers = root_log |
120 |
|
121 |
[logger_vigiboard] |
122 |
level = DEBUG |
123 |
handlers = vigiboard_log |
124 |
qualname = vigiboard |
125 |
|
126 |
[logger_sqlalchemy] |
127 |
level = DEBUG |
128 |
handlers = sql_log |
129 |
qualname = sqlalchemy.engine |
130 |
|
131 |
; A logger for authentication, identification and authorization -- this is |
132 |
; repoze.who and repoze.what: |
133 |
[logger_auth] |
134 |
level = DEBUG |
135 |
handlers = auth_log |
136 |
qualname = auth |
137 |
|
138 |
; If you create additional handlers, add them as a key to [handlers] |
139 |
[handler_console] |
140 |
class = StreamHandler |
141 |
args = (sys.stderr,) |
142 |
level = NOTSET |
143 |
formatter = generic |
144 |
|
145 |
[handler_sql_log] |
146 |
class = FileHandler |
147 |
args = ('log/sql.log','a') |
148 |
level = DEBUG |
149 |
formatter = generic |
150 |
|
151 |
[handler_root_log] |
152 |
class = FileHandler |
153 |
args = ('log/root.log','a') |
154 |
level = DEBUG |
155 |
formatter = generic |
156 |
|
157 |
[handler_vigiboard_log] |
158 |
class = FileHandler |
159 |
args = ('log/vigiboard.log','a') |
160 |
level = DEBUG |
161 |
formatter = generic |
162 |
|
163 |
[handler_auth_log] |
164 |
class = FileHandler |
165 |
args = ('log/auth.log','a') |
166 |
level = DEBUG |
167 |
formatter = generic |
168 |
|
169 |
; If you create additional formatters, add them as a key to [formatters] |
170 |
[formatter_generic] |
171 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
172 |
datefmt = %H:%M:%S |
173 |
|