vigigraph / development.ini @ 56ec3dfb
History | View | Annotate | Download (4.96 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 = 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 = 8082 |
21 |
|
22 |
[app:main] |
23 |
use = egg:vigilo-vigigraph |
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 |
logo_link = / |
31 |
|
32 |
app.vigicore = / |
33 |
|
34 |
; Emplacement des applications (vigirrd, Nagios, ...) |
35 |
; sur les serveurs distants. |
36 |
app_path.vigirrd = / |
37 |
app_path.nagios = /nagios/ |
38 |
|
39 |
; Schéma ("protocol") à utiliser pour se connecter |
40 |
; à l'application. En général : http ou https. |
41 |
; Par défaut : http |
42 |
app_scheme.vigirrd = http |
43 |
app_scheme.nagios = http |
44 |
|
45 |
app_redirect.nagios = true |
46 |
|
47 |
; Port de connexion au serveur distant hébergeant |
48 |
; l'application. |
49 |
; Par défaut : 80 |
50 |
app_port.vigirrd = 8084 |
51 |
app_port.nagios = 80 |
52 |
|
53 |
# Délai de rafraîchissement (en secondes) |
54 |
refresh_delay = 30 |
55 |
|
56 |
full_stack = true |
57 |
cache_dir = %(here)s/data |
58 |
beaker.session.key = vigigraph |
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 |
# pick the form for your database |
69 |
# %(here) may include a ':' character on Windows environments; this can |
70 |
# invalidate the URI when specifying a SQLite db via path name |
71 |
# sqlalchemy.url=postgres://username:password@hostname:port/databasename |
72 |
# sqlalchemy.url=mysql://username:password@hostname:port/databasename |
73 |
|
74 |
|
75 |
# If you have sqlite, here's a simple default to get you started |
76 |
# in development |
77 |
|
78 |
sqlalchemy.url=postgresql://vigilo:vigilo@127.0.0.1/vigilo |
79 |
#sqlalchemy.url = sqlite:///%(here)s/devdata.db |
80 |
#echo shouldn't be used together with the logging module. |
81 |
sqlalchemy.echo = false |
82 |
sqlalchemy.echo_pool = false |
83 |
sqlalchemy.pool_recycle = 3600 |
84 |
|
85 |
# if you are using Mako and want to be able to reload |
86 |
# the mako template from disk during the development phase |
87 |
# you should say 'true' here |
88 |
# This option is only used for mako templating engine |
89 |
# WARNING: if you want to deploy your application using a zipped egg |
90 |
# (ie: if your application's setup.py defines zip-safe=True, then you |
91 |
# MUST put "false" for the production environment because there will |
92 |
# be no disk and real files to compare time with. |
93 |
# On the contrary if your application defines zip-safe=False and is |
94 |
# deployed in an unzipped manner, then you can leave this option to true |
95 |
templating.mako.reloadfromdisk = true |
96 |
|
97 |
# the compiled template dir is a directory that must be readable by your |
98 |
# webserver. It will be used to store the resulting templates once compiled |
99 |
# by the TemplateLookup system. |
100 |
# During development you generally don't need this option since paste's HTTP |
101 |
# server will have access to you development directories, but in production |
102 |
# you'll most certainly want to have apache or nginx to write in a directory |
103 |
# that does not contain any source code in any form for obvious security reasons. |
104 |
# |
105 |
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
106 |
|
107 |
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
108 |
# Debug mode will enable the interactive debugging tool, allowing ANYONE to |
109 |
# execute malicious code after an exception is raised. |
110 |
#set debug = false |
111 |
|
112 |
auth.config = %(here)s/who.ini |
113 |
#auth.log_file = stdout |
114 |
#auth.log_level = debug |
115 |
|
116 |
# Logging configuration |
117 |
# Add additional loggers, handlers, formatters here |
118 |
# Uses python's logging config file format |
119 |
# http://docs.python.org/lib/logging-config-fileformat.html |
120 |
|
121 |
[loggers] |
122 |
keys = root, vigigraph, sqlalchemy, auth |
123 |
|
124 |
[handlers] |
125 |
keys = console |
126 |
|
127 |
[formatters] |
128 |
keys = generic |
129 |
|
130 |
# If you create additional loggers, add them as a key to [loggers] |
131 |
[logger_root] |
132 |
level = INFO |
133 |
handlers = console |
134 |
|
135 |
[logger_vigigraph] |
136 |
level = DEBUG |
137 |
handlers = |
138 |
qualname = vigigraph |
139 |
|
140 |
[logger_sqlalchemy] |
141 |
level = INFO |
142 |
handlers = |
143 |
qualname = sqlalchemy.engine |
144 |
# "level = INFO" logs SQL queries. |
145 |
# "level = DEBUG" logs SQL queries and results. |
146 |
# "level = WARN" logs neither. (Recommended for production systems.) |
147 |
|
148 |
|
149 |
# A logger for authentication, identification and authorization -- this is |
150 |
# repoze.who and repoze.what: |
151 |
[logger_auth] |
152 |
level = WARN |
153 |
handlers = |
154 |
qualname = auth |
155 |
|
156 |
# If you create additional handlers, add them as a key to [handlers] |
157 |
[handler_console] |
158 |
class = StreamHandler |
159 |
args = (sys.stderr,) |
160 |
level = NOTSET |
161 |
formatter = generic |
162 |
|
163 |
# If you create additional formatters, add them as a key to [formatters] |
164 |
[formatter_generic] |
165 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
166 |
datefmt = %H:%M:%S |