Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / development.ini @ a45763b4

History | View | Annotate | Download (5.48 KB)

1
#
2
# vigiboard - 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 = 127.0.0.1 
20
port = 8080
21

    
22
[app:main]
23
use = egg:vigiboard
24

    
25
; Nombre d'événements par page.
26
vigiboard_items_per_page = 15
27

    
28
; URL vers laquelle le logo de Vigilo redirige.
29
vigiboard_links.logo = /
30

    
31
; Ordre de tri pour la priorité des événements.
32
; - Utiliser "asc" si la priorité est inversement proportionnelle à sa
33
;   valeur (ie: plus le nombre est bas, plus la priorité est élevée).
34
; - Utiliser "desc" si la priorité est proportionnelle à sa valeur
35
;   (ie: plus le nombre est élevé, plus la priorité est basse).
36
; NE PAS METTRE DE GUILLEMETS/APOSTROPHES AUTOUR DE LA VALEUR.
37
vigiboard_priority_order = asc
38

    
39
; XXX PasteDeploy uses ConfigParser which doesn't play well with interpolation.
40
; See http://trac.pythonpaste.org/pythonpaste/ticket/379
41
;
42
; vigicore/patches/paste_deploy_SafeConfigParser.diff contains a patch to
43
; use SafeConfigParser which supports string interpolation escapes.
44
;
45
; URL des tickets, possibilités:
46
; - %(idaggregate)s
47
; - %(host)s
48
; - %(service)s
49
; - %(tt)s
50
vigiboard_links.tt = http://example4.com/%%(idcorrevent)d/%%(tt)s
51

    
52
; Default font size, must be a valid size as per the CSS 2.1 specification.
53
; See http://www.w3.org/TR/CSS21/fonts.html#font-size-props
54
vigiboard_font.size = 10px
55

    
56

    
57
full_stack = true
58
#lang = fr
59
cache_dir = %(here)s/data
60
beaker.session.key = vigiboard
61
beaker.session.secret = somesecret
62

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

    
69
# DB - sqlite fails, not postgresql ready, use mysql for now
70
#sqlalchemy.url = sqlite:///%(here)s/devdata.db
71
#sqlalchemy.url=mysql://vigiboard:penmdor@localhost/vigiboard
72
#sqlalchemy.url=postgres://vigiboard:tandreja@localhost/vigiboard
73
#sqlalchemy.url=mysql://root:tandreja@localhost:3306/vigiboard
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
# Logging configuration
107
# Add additional loggers, handlers, formatters here
108
# Uses python's logging config file format
109
# http://docs.python.org/lib/logging-config-fileformat.html
110

    
111
[loggers]
112
keys = root, vigiboard, sqlalchemy, auth
113

    
114
[handlers]
115
keys = console,sql_log,root_log,vigiboard_log,auth_log
116

    
117
[formatters]
118
keys = generic
119

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

    
125
[logger_vigiboard]
126
level = INFO
127
handlers = vigiboard_log
128
qualname = vigiboard
129

    
130
[logger_sqlalchemy]
131
level = INFO
132
handlers = sql_log
133
qualname = sqlalchemy.engine
134

    
135
# A logger for authentication, identification and authorization -- this is
136
# repoze.who and repoze.what:
137
[logger_auth]
138
level = WARN
139
handlers = auth_log
140
qualname = auth
141

    
142
# If you create additional handlers, add them as a key to [handlers]
143
[handler_console]
144
class = StreamHandler
145
args = (sys.stderr,)
146
level = NOTSET
147
formatter = generic
148

    
149
[handler_sql_log]
150
class = FileHandler
151
args = ('log/sql.log','a')
152
level = INFO
153
formatter = generic
154

    
155
[handler_root_log]
156
class = FileHandler
157
args = ('log/root.log','a')
158
level = INFO
159
formatter = generic
160

    
161
[handler_vigiboard_log]
162
class = FileHandler
163
args = ('log/vigiboard.log','a')
164
level = INFO
165
formatter = generic
166

    
167
[handler_auth_log]
168
class = FileHandler
169
args = ('log/auth.log','a')
170
level = INFO
171
formatter = generic
172

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