Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / development.ini @ 65cc6a5c

History | View | Annotate | Download (4.79 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
help_link=http://foo.bar/help
29
logo_link = /
30

    
31
app.vigicore = /
32

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

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

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

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

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

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

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

    
70
# If you have sqlite, here's a simple default to get you started
71
# in development
72
sqlalchemy.url=postgresql://vigilo:vigilo@127.0.0.1/vigilo
73
#sqlalchemy.url = sqlite:///%(here)s/devdata.db
74
#echo shouldn't be used together with the logging module.
75
sqlalchemy.echo = false
76
sqlalchemy.echo_pool = false
77
sqlalchemy.pool_recycle = 3600
78

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

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

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

    
106
auth.config = %(here)s/who.ini
107
#auth.log_file = stdout
108
#auth.log_level = debug
109

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

    
115
[loggers]
116
keys = root, vigigraph, sqlalchemy, auth
117

    
118
[handlers]
119
keys = console
120

    
121
[formatters]
122
keys = generic
123

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

    
129
[logger_vigigraph]
130
level = DEBUG
131
handlers =
132
qualname = vigigraph
133

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

    
142

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

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

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