Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / development.ini @ e2dbeada

History | View | Annotate | Download (4.85 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:vigigraph
24

    
25
db_basename=vigilo_
26
;db_basename=
27
password_hashing_function=md5
28
lang=fr
29
use_kerberos=False
30
app.vigicore = /
31

    
32
; Emplacement des applications (rrdgraph, Nagios, ...)
33
; sur les serveurs distants.
34
app_path.rrdgraph = /vigilo/rrdgraph/
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 = %(here)s/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

    
71
# If you have sqlite, here's a simple default to get you started
72
# in development
73

    
74
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo
75
#sqlalchemy.url = sqlite:///%(here)s/devdata.db
76
#echo shouldn't be used together with the logging module.
77
sqlalchemy.echo = false
78
sqlalchemy.echo_pool = false
79
sqlalchemy.pool_recycle = 3600
80

    
81
# if you are using Mako and want to be able to reload
82
# the mako template from disk during the development phase
83
# you should say 'true' here
84
# This option is only used for mako templating engine
85
# WARNING: if you want to deploy your application using a zipped egg
86
# (ie: if your application's setup.py defines zip-safe=True, then you
87
# MUST put "false" for the production environment because there will
88
# be no disk and real files to compare time with.
89
# On the contrary if your application defines zip-safe=False and is
90
# deployed in an unzipped manner, then you can leave this option to true
91
templating.mako.reloadfromdisk = true
92

    
93
# the compiled template dir is a directory that must be readable by your
94
# webserver. It will be used to store the resulting templates once compiled
95
# by the TemplateLookup system.
96
# During development you generally don't need this option since paste's HTTP
97
# server will have access to you development directories, but in production
98
# you'll most certainly want to have apache or nginx to write in a directory
99
# that does not contain any source code in any form for obvious security reasons.
100
#
101
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access
102

    
103
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
104
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
105
# execute malicious code after an exception is raised.
106
#set debug = false
107

    
108
# Logging configuration
109
# Add additional loggers, handlers, formatters here
110
# Uses python's logging config file format
111
# http://docs.python.org/lib/logging-config-fileformat.html
112

    
113
[loggers]
114
keys = root, vigigraph, sqlalchemy, auth
115

    
116
[handlers]
117
keys = console
118

    
119
[formatters]
120
keys = generic
121

    
122
# If you create additional loggers, add them as a key to [loggers]
123
[logger_root]
124
level = INFO
125
handlers = console
126

    
127
[logger_vigigraph]
128
level = DEBUG
129
handlers =
130
qualname = vigigraph
131

    
132
[logger_sqlalchemy]
133
level = INFO
134
handlers =
135
qualname = sqlalchemy.engine
136
# "level = INFO" logs SQL queries.
137
# "level = DEBUG" logs SQL queries and results.
138
# "level = WARN" logs neither.  (Recommended for production systems.)
139

    
140

    
141
# A logger for authentication, identification and authorization -- this is
142
# repoze.who and repoze.what:
143
[logger_auth]
144
level = WARN
145
handlers = 
146
qualname = auth
147

    
148
# If you create additional handlers, add them as a key to [handlers]
149
[handler_console]
150
class = StreamHandler
151
args = (sys.stderr,)
152
level = NOTSET
153
formatter = generic
154

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