vigigraph / deployment / settings.ini @ 77db889c
History | View | Annotate | Download (5.35 KB)
1 |
# |
---|---|
2 |
# vigigraph - 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:vigigraph |
24 |
|
25 |
db_basename=vigilo_ |
26 |
password_hashing_function=md5 |
27 |
lang=fr |
28 |
use_kerberos=False |
29 |
help_link=/ |
30 |
logo_link = / |
31 |
|
32 |
; Emplacement des applications (vigirrd, Nagios, ...) |
33 |
; sur les serveurs distants. |
34 |
app_path.rrdgraph = /vigilo/vigirrd/ |
35 |
app_path.nagios = /nagios/ |
36 |
|
37 |
; Schéma ("protocol") à utiliser pour se connecter |
38 |
; à l'application. En général : http ou https. |
39 |
; Par défaut : http |
40 |
app_scheme.rrdgraph = http |
41 |
app_scheme.nagios = http |
42 |
|
43 |
; Port de connexion au serveur distant hébergeant |
44 |
; l'application. |
45 |
; Par défaut : 80 |
46 |
app_port.rrdgraph = 80 |
47 |
app_port.nagios = 80 |
48 |
|
49 |
# Vigigraph - refresh for graphs (en millisecondes) |
50 |
delay_refresh = 30000 |
51 |
|
52 |
full_stack = true |
53 |
cache_dir = /tmp/vigilo/vigigraph/data |
54 |
beaker.session.key = vigigraph |
55 |
beaker.session.secret = vigilo |
56 |
sa_auth.cookie_secret = vigilo |
57 |
|
58 |
# If you'd like to fine-tune the individual locations of the cache data dirs |
59 |
# for the Cache data, or the Session saves, un-comment the desired settings |
60 |
# here: |
61 |
#beaker.cache.data_dir = %(here)s/data/cache |
62 |
#beaker.session.data_dir = %(here)s/data/sessions |
63 |
|
64 |
# pick the form for your database |
65 |
# %(here) may include a ':' character on Windows environments; this can |
66 |
# invalidate the URI when specifying a SQLite db via path name |
67 |
# sqlalchemy.url=postgres://username:password@hostname:port/databasename |
68 |
# sqlalchemy.url=mysql://username:password@hostname:port/databasename |
69 |
|
70 |
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo |
71 |
|
72 |
#echo shouldn't be used together with the logging module. |
73 |
sqlalchemy.echo = false |
74 |
sqlalchemy.echo_pool = false |
75 |
sqlalchemy.pool_recycle = 3600 |
76 |
|
77 |
# if you are using Mako and want to be able to reload |
78 |
# the mako template from disk during the development phase |
79 |
# you should say 'true' here |
80 |
# This option is only used for mako templating engine |
81 |
# WARNING: if you want to deploy your application using a zipped egg |
82 |
# (ie: if your application's setup.py defines zip-safe=True, then you |
83 |
# MUST put "false" for the production environment because there will |
84 |
# be no disk and real files to compare time with. |
85 |
# On the contrary if your application defines zip-safe=False and is |
86 |
# deployed in an unzipped manner, then you can leave this option to true |
87 |
templating.mako.reloadfromdisk = true |
88 |
|
89 |
# the compiled template dir is a directory that must be readable by your |
90 |
# webserver. It will be used to store the resulting templates once compiled |
91 |
# by the TemplateLookup system. |
92 |
# During development you generally don't need this option since paste's HTTP |
93 |
# server will have access to you development directories, but in production |
94 |
# you'll most certainly want to have apache or nginx to write in a directory |
95 |
# that does not contain any source code in any form for obvious security reasons. |
96 |
# |
97 |
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
98 |
|
99 |
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
100 |
# Debug mode will enable the interactive debugging tool, allowing ANYONE to |
101 |
# execute malicious code after an exception is raised. |
102 |
set debug = false |
103 |
|
104 |
# Logging configuration |
105 |
# Add additional loggers, handlers, formatters here |
106 |
# Uses python's logging config file format |
107 |
# http://docs.python.org/lib/logging-config-fileformat.html |
108 |
|
109 |
[loggers] |
110 |
keys = root, vigigraph, sqlalchemy, auth |
111 |
|
112 |
[handlers] |
113 |
keys = console,sql_log,root_log,vigigraph_log,auth_log |
114 |
|
115 |
[formatters] |
116 |
keys = generic |
117 |
|
118 |
; If you create additional loggers, add them as a key to [loggers] |
119 |
[logger_root] |
120 |
level = INFO |
121 |
handlers = root_log |
122 |
|
123 |
[logger_vigigraph] |
124 |
level = INFO |
125 |
handlers = vigigraph_log |
126 |
qualname = vigigraph |
127 |
|
128 |
[logger_sqlalchemy] |
129 |
level = INFO |
130 |
handlers = sql_log |
131 |
qualname = sqlalchemy.engine |
132 |
|
133 |
; A logger for authentication, identification and authorization -- this is |
134 |
; repoze.who and repoze.what: |
135 |
[logger_auth] |
136 |
level = INFO |
137 |
handlers = auth_log |
138 |
qualname = auth |
139 |
|
140 |
; If you create additional handlers, add them as a key to [handlers] |
141 |
[handler_console] |
142 |
class = StreamHandler |
143 |
args = (sys.stderr,) |
144 |
level = NOTSET |
145 |
formatter = generic |
146 |
|
147 |
[handler_sql_log] |
148 |
class = TimedRotatingFileHandler |
149 |
args = ('/var/log/vigilo/vigigraph/sql.log','a') |
150 |
level = DEBUG |
151 |
formatter = generic |
152 |
when = D |
153 |
interval = 30 |
154 |
backupcount = 12 |
155 |
|
156 |
[handler_root_log] |
157 |
class = TimedRotatingFileHandler |
158 |
args = ('/var/log/vigilo/vigigraph/root.log','a') |
159 |
level = DEBUG |
160 |
formatter = generic |
161 |
when = D |
162 |
interval = 30 |
163 |
backupcount = 12 |
164 |
|
165 |
[handler_vigigraph_log] |
166 |
class = TimedRotatingFileHandler |
167 |
args = ('/var/log/vigilo/vigigraph/vigigraph.log','a') |
168 |
level = DEBUG |
169 |
formatter = generic |
170 |
when = D |
171 |
interval = 30 |
172 |
backupcount = 12 |
173 |
|
174 |
[handler_auth_log] |
175 |
class = TimedRotatingFileHandler |
176 |
args = ('/var/log/vigilo/vigigraph/auth.log','a') |
177 |
level = DEBUG |
178 |
formatter = generic |
179 |
when = D |
180 |
interval = 30 |
181 |
backupcount = 12 |
182 |
|
183 |
; If you create additional formatters, add them as a key to [formatters] |
184 |
[formatter_generic] |
185 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
186 |
datefmt = %H:%M:%S |
187 |
|