Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / development.ini @ 51b64e26

History | View | Annotate | Download (4.84 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_schemes=sha256_crypt
27
deprecated_password_schemes=hex_md5
28
lang=fr
29
help_link=http://foo.bar/help
30
logo_link = /
31
cache_max_age=0
32

    
33
app.vigicore = /
34

    
35
; Emplacement des applications (vigirrd, Nagios, ...)
36
; sur les serveurs distants.
37
app_path.vigirrd = /
38
app_path.nagios = /nagios/
39

    
40
; Schéma ("protocol") à utiliser pour se connecter
41
; à l'application. En général : http ou https.
42
; Par défaut : http
43
app_scheme.vigirrd = http
44
app_scheme.nagios = http
45

    
46
; Port de connexion au serveur distant hébergeant
47
; l'application.
48
; Par défaut : 80
49
app_port.vigirrd = 8084
50
app_port.nagios = 80
51

    
52
; Délai de rafraîchissement (en secondes)
53
refresh_delay = 30
54

    
55
; Liste des noms des groupes d'utilisateurs privilégiés,
56
; séparés par des virgules.
57
; Par défaut : "managers"
58
admin_groups = managers
59

    
60
full_stack = true
61
cache_dir = %(here)s/data
62
beaker.session.key = vigigraph
63
beaker.session.secret = vigilo
64
sa_auth.cookie_secret = vigilo
65

    
66
# If you'd like to fine-tune the individual locations of the cache data dirs
67
# for the Cache data, or the Session saves, un-comment the desired settings
68
# here:
69
#beaker.cache.data_dir = %(here)s/data/cache
70
#beaker.session.data_dir = %(here)s/data/sessions
71

    
72
# If you have sqlite, here's a simple default to get you started
73
# in development
74
sqlalchemy.url=postgresql://vigilo:vigilo@127.0.0.1/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
auth.config = %(here)s/who.ini
109
#auth.log_file = stdout
110
#auth.log_level = debug
111

    
112
# Logging configuration
113
# Add additional loggers, handlers, formatters here
114
# Uses python's logging config file format
115
# http://docs.python.org/lib/logging-config-fileformat.html
116

    
117
[loggers]
118
keys = root, vigigraph, sqlalchemy, auth
119

    
120
[handlers]
121
keys = console
122

    
123
[formatters]
124
keys = generic
125

    
126
# If you create additional loggers, add them as a key to [loggers]
127
[logger_root]
128
level = INFO
129
handlers = console
130

    
131
[logger_vigigraph]
132
level = DEBUG
133
handlers =
134
qualname = vigigraph
135

    
136
[logger_sqlalchemy]
137
level = INFO
138
handlers =
139
qualname = sqlalchemy.engine
140
# "level = INFO" logs SQL queries.
141
# "level = DEBUG" logs SQL queries and results.
142
# "level = WARN" logs neither.  (Recommended for production systems.)
143

    
144

    
145
# A logger for authentication, identification and authorization -- this is
146
# repoze.who and repoze.what:
147
[logger_auth]
148
level = INFO
149
handlers =
150
qualname = auth
151

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

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