vigiboard / development.ini @ 34114c33
History | View | Annotate | Download (4.97 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 = 0.0.0.0 |
20 |
port = 8080 |
21 |
|
22 |
[app:main] |
23 |
use = egg:vigiboard |
24 |
|
25 |
db_basename=vigilo_ |
26 |
;password_hashing_function=md5 |
27 |
lang=fr |
28 |
use_kerberos=False |
29 |
|
30 |
; Nombre d'événements par page. |
31 |
vigiboard_items_per_page = 15 |
32 |
|
33 |
; URL vers laquelle le logo de Vigilo redirige. |
34 |
vigiboard_links.logo = / |
35 |
|
36 |
; Ordre de tri pour la priorité des événements. |
37 |
; - Utiliser "asc" si la priorité est inversement proportionnelle à sa |
38 |
; valeur (ie: plus le nombre est bas, plus la priorité est élevée). |
39 |
; - Utiliser "desc" si la priorité est proportionnelle à sa valeur |
40 |
; (ie: plus le nombre est élevé, plus la priorité est élevée). |
41 |
; NE PAS METTRE DE GUILLEMETS/APOSTROPHES AUTOUR DE LA VALEUR. |
42 |
vigiboard_priority_order = asc |
43 |
|
44 |
; Default font size, must be a valid size as per the CSS 2.1 specification. |
45 |
; See http://www.w3.org/TR/CSS21/fonts.html#font-size-props |
46 |
vigiboard_font.size = 10px |
47 |
|
48 |
|
49 |
full_stack = true |
50 |
cache_dir = %(here)s/data |
51 |
beaker.session.key = vigiboard |
52 |
beaker.session.secret = vigilo |
53 |
sa_auth.cookie_secret = vigilo |
54 |
|
55 |
# If you'd like to fine-tune the individual locations of the cache data dirs |
56 |
# for the Cache data, or the Session saves, un-comment the desired settings |
57 |
# here: |
58 |
#beaker.cache.data_dir = %(here)s/data/cache |
59 |
#beaker.session.data_dir = %(here)s/data/sessions |
60 |
|
61 |
# DB - sqlite fails, not postgresql ready, use mysql for now |
62 |
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo |
63 |
#echo shouldn't be used together with the logging module. |
64 |
sqlalchemy.echo = false |
65 |
sqlalchemy.echo_pool = false |
66 |
sqlalchemy.pool_recycle = 3600 |
67 |
|
68 |
# if you are using Mako and want to be able to reload |
69 |
# the mako template from disk during the development phase |
70 |
# you should say 'true' here |
71 |
# This option is only used for mako templating engine |
72 |
# WARNING: if you want to deploy your application using a zipped egg |
73 |
# (ie: if your application's setup.py defines zip-safe=True, then you |
74 |
# MUST put "false" for the production environment because there will |
75 |
# be no disk and real files to compare time with. |
76 |
# On the contrary if your application defines zip-safe=False and is |
77 |
# deployed in an unzipped manner, then you can leave this option to true |
78 |
templating.mako.reloadfromdisk = true |
79 |
|
80 |
# the compiled template dir is a directory that must be readable by your |
81 |
# webserver. It will be used to store the resulting templates once compiled |
82 |
# by the TemplateLookup system. |
83 |
# During development you generally don't need this option since paste's HTTP |
84 |
# server will have access to you development directories, but in production |
85 |
# you'll most certainly want to have apache or nginx to write in a directory |
86 |
# that does not contain any source code in any form for obvious security reasons. |
87 |
# |
88 |
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
89 |
|
90 |
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
91 |
# Debug mode will enable the interactive debugging tool, allowing ANYONE to |
92 |
# execute malicious code after an exception is raised. |
93 |
#set debug = false |
94 |
|
95 |
# Logging configuration |
96 |
# Add additional loggers, handlers, formatters here |
97 |
# Uses python's logging config file format |
98 |
# http://docs.python.org/lib/logging-config-fileformat.html |
99 |
|
100 |
[loggers] |
101 |
keys = root, vigiboard, sqlalchemy, auth |
102 |
|
103 |
[handlers] |
104 |
keys = console,sql_log,root_log,vigiboard_log,auth_log |
105 |
|
106 |
[formatters] |
107 |
keys = generic |
108 |
|
109 |
# If you create additional loggers, add them as a key to [loggers] |
110 |
[logger_root] |
111 |
level = INFO |
112 |
handlers = console |
113 |
|
114 |
[logger_vigiboard] |
115 |
level = INFO |
116 |
handlers = vigiboard_log |
117 |
qualname = vigiboard |
118 |
|
119 |
[logger_sqlalchemy] |
120 |
level = DEBUG |
121 |
handlers = console |
122 |
#sql_log |
123 |
qualname = sqlalchemy.engine |
124 |
|
125 |
# A logger for authentication, identification and authorization -- this is |
126 |
# repoze.who and repoze.what: |
127 |
[logger_auth] |
128 |
level = WARN |
129 |
handlers = auth_log |
130 |
qualname = auth |
131 |
|
132 |
# If you create additional handlers, add them as a key to [handlers] |
133 |
[handler_console] |
134 |
class = StreamHandler |
135 |
args = (sys.stderr,) |
136 |
level = NOTSET |
137 |
formatter = generic |
138 |
|
139 |
[handler_sql_log] |
140 |
class = FileHandler |
141 |
args = ('log/sql.log','a') |
142 |
level = INFO |
143 |
formatter = generic |
144 |
|
145 |
[handler_root_log] |
146 |
class = FileHandler |
147 |
args = ('log/root.log','a') |
148 |
level = INFO |
149 |
formatter = generic |
150 |
|
151 |
[handler_vigiboard_log] |
152 |
class = FileHandler |
153 |
args = ('log/vigiboard.log','a') |
154 |
level = INFO |
155 |
formatter = generic |
156 |
|
157 |
[handler_auth_log] |
158 |
class = FileHandler |
159 |
args = ('log/auth.log','a') |
160 |
level = INFO |
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 |